toString vrai final
This commit is contained in:
parent
78c2c134bc
commit
1a029cdd10
|
|
@ -95,7 +95,7 @@ public class Board {
|
||||||
String result = "";
|
String result = "";
|
||||||
for (int y = 0; y < height; y++) {
|
for (int y = 0; y < height; y++) {
|
||||||
for (int x = 0; x < width; x++) {
|
for (int x = 0; x < width; x++) {
|
||||||
String c = ".";
|
String c = " ";
|
||||||
for (Piece p : pieces) {
|
for (Piece p : pieces) {
|
||||||
if (p.getX() == x && p.getY() == y) {
|
if (p.getX() == x && p.getY() == y) {
|
||||||
String letter = p.getType().getSummary();
|
String letter = p.getType().getSummary();
|
||||||
|
|
@ -106,7 +106,7 @@ public class Board {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
result += c + " ";
|
result += c + ",";
|
||||||
}
|
}
|
||||||
result += "\n";
|
result += "\n";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue