juste better

This commit is contained in:
2025-04-02 10:54:14 +02:00
parent 1b9ff5bdd1
commit 97cafb903a
12 changed files with 212 additions and 131 deletions

View File

@@ -24,16 +24,4 @@ public class Game {
playerTurn = Color.getEnemy(playerTurn);
}
public boolean[][] getAllowedMoves(Coordinate coordinate) {
Piece piece = this.board.pieceAt(coordinate);
if (piece == null)
return null;
if (piece.getColor() != getPlayerTurn())
return null;
return this.board.getAllowedMoves(coordinate);
}
}