Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
agile-java
/
ChessAndroid
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d2093f3a
authored
May 31, 2018
by
Paktalin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed printing issues
parent
f5fa298f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
app/src/main/java/com/example/paktalin/agilejava_exercises/BoardLayout.java
app/src/test/java/com/example/paktalin/agilejava_exercises/BoardTest.java
app/src/main/java/com/example/paktalin/agilejava_exercises/BoardLayout.java
View file @
d2093f3a
...
...
@@ -66,7 +66,7 @@ class BoardLayout {
else
buffer
.
append
(
pieces
[
row
][
column
].
getRepresentation
());
}
buffer
.
append
(
" "
+
(
ROW_COUNT
-
row
)
+
NEW_LINE
);
buffer
.
append
(
" "
+
(
row
+
1
)
+
NEW_LINE
);
}
buffer
.
append
(
"abcdefgh"
);
return
buffer
.
toString
();
...
...
app/src/test/java/com/example/paktalin/agilejava_exercises/BoardTest.java
View file @
d2093f3a
...
...
@@ -62,14 +62,14 @@ public class BoardTest extends TestCase {
private
void
verifyPrint
()
{
assertEquals
(
".KR..... 8\n"
+
"P.PB.... 7\n"
+
".P..Q... 6\n"
+
"........ 5\n"
+
".....nq. 4\n"
+
".....p.p 3\n"
+
".....pp. 2\n"
+
"....rk.. 1\n"
+
".....pp. 2\n"
+
".....p.p 3\n"
+
".....nq. 4\n"
+
"........ 5\n"
+
".P..Q... 6\n"
+
"P.PB.... 7\n"
+
".KR..... 8\n"
+
"abcdefgh"
,
board
.
print
());
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment