Also added a way to force the white turn at each restart

This commit is contained in:
yohanmontagne 2025-05-13 17:46:17 +02:00
parent 4c2a9f6b14
commit 174f7c03d0
2 changed files with 6 additions and 2 deletions

View File

@ -483,7 +483,10 @@ public class Board implements Cloneable {
public void setTurnNumber(int turnNumber) {
this.turnNumber = turnNumber;
public void setTurnNumber(int turnNumber) {
this.turnNumber = turnNumber;
}
public void setTurnIsWhite(boolean turnIsWhite) {
this.turnIsWhite = turnIsWhite;
}
}

View File

@ -82,6 +82,7 @@ public class Game extends Thread {
board.cleanBoard();
board.populateBoard();
board.setTurnNumber(0);
board.setTurnIsWhite(true);
}
public void setBoard(String[] array) {