This commit is contained in:
Romain MURPHY 2025-05-20 10:27:29 +02:00
commit 315dac9ecd
1 changed files with 3 additions and 1 deletions

View File

@ -362,7 +362,9 @@ public class Board {
} }
board.get(ym).set(xm,null); board.get(ym).set(xm,null);
this.turnColor = !this.turnColor; this.turnColor = !this.turnColor;
this.turnNumber +=1; if(this.turnColor) {
this.turnNumber +=1;
}
} }
public void setBoard(ArrayList<ArrayList<Piece>> board) { public void setBoard(ArrayList<ArrayList<Piece>> board) {