Add updateBoard() method to Gui

Gui
Justin 2025-06-18 20:41:32 +02:00
parent 582a03178d
commit 54453eba45
1 changed files with 8 additions and 0 deletions

View File

@ -110,4 +110,12 @@ public class Gui {
return fields[row][col];
}
public void updateBoard(String[][] unicodeBoard) {
for (int row = 0; row < 8; row++) {
for (int col = 0; col < 8; col++) {
fields[row][col].setText(unicodeBoard[row][col]);
}
}
}
}