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