Add updateBoard() method to Gui
parent
582a03178d
commit
54453eba45
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue