Merge branch 'main' of https://gitarero.ecam.fr/romain.murphy/OOP_2B1_Project.git into main
This commit is contained in:
commit
315dac9ecd
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue