Turn nb +1 while AI is turn on
This commit is contained in:
parent
6a1f26f099
commit
d3b83d0f87
|
|
@ -378,7 +378,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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue