turn Number fixed and added
This commit is contained in:
parent
24a9be40f9
commit
25a0ed5bf2
|
|
@ -219,16 +219,17 @@ public class Board {
|
|||
if (isHighlighted(x,y)) {
|
||||
this.movePiece(x, y);
|
||||
select = false;
|
||||
this.turnNumber += 1;
|
||||
// System.out.println(this.toString()); // Debug
|
||||
|
||||
this.turnColor = !this.turnColor;
|
||||
|
||||
if(!this.turnColor) {
|
||||
this.turnNumber += 1;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
// System.out.println("a"); // Debug !
|
||||
}
|
||||
else {
|
||||
select = false;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
public boolean isSelected(int x, int y) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue