Turn nb +1 while AI is turn on

This commit is contained in:
martinbst 2025-05-17 23:27:25 +02:00
parent 6a1f26f099
commit d3b83d0f87
1 changed files with 3 additions and 1 deletions

View File

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