juste better
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user