toString vrai final

This commit is contained in:
Admin 2025-05-06 15:14:06 +02:00
parent 78c2c134bc
commit 1a029cdd10
1 changed files with 2 additions and 2 deletions

View File

@ -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";
} }