en passant rule

This commit is contained in:
2025-04-05 19:20:41 +02:00
parent 2ec7be27ca
commit d94f7d733b
9 changed files with 108 additions and 38 deletions

View File

@@ -75,7 +75,7 @@ public class PromoteCommand extends PlayerCommand {
}
@Override
public CommandResult undo(Game game, OutputSystem outputSystem) {
protected CommandResult undoImpl(Game game, OutputSystem outputSystem) {
final ChessBoard board = game.getBoard();
Piece promoted = board.pieceAt(this.pieceCoords);