switch column and row in toString method

This commit is contained in:
carol 2025-05-11 12:27:53 +02:00
parent a05d192a18
commit 093ce11e8a
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ public class Board {
for (int row = height - 1; row >= 0; row--) { for (int row = height - 1; row >= 0; row--) {
for (int column = 0; column < width; column++) { for (int column = 0; column < width; column++) {
Piece piece = board[row][column]; Piece piece = board[column][row];
if (piece == null) { if (piece == null) {
stringboard.append(". "); stringboard.append(". ");
} else { } else {