turn Number fixed and added

This commit is contained in:
martinbst 2025-05-07 14:34:39 +02:00
parent 24a9be40f9
commit 25a0ed5bf2
1 changed files with 392 additions and 391 deletions

View File

@ -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) {