Båda rör fortfarande samma färg och det repaintas bara varannat drag

This commit is contained in:
2022-12-04 22:29:33 +01:00
parent 54dd294433
commit 36d539ff4c
5 changed files with 60 additions and 26 deletions

View File

@@ -17,7 +17,8 @@ public final class SameBoard extends Board {
}
@Override
protected void makeMove(Move move) {
protected void makeMove(Move move) {
moveList.addElement(move);
move.movedPiece.move(pieces, move.to);
turnCount++;
whitesTurn = !whitesTurn;