Commit Graph

4 Commits

Author SHA1 Message Date
Marco d40c757776 fix bug that prevented king from moving because server thought it wanted to castling (but it was not a castling move) 2024-05-10 02:29:11 +02:00
Marco 77e66aabdd Fix a bug that allowed castling even if squares were attacked 2024-04-09 21:48:27 +02:00
Marco ff2ec599fe Introduce PGN helpers
In order to simplify special moves like en passant or castling for the
client, we want to deliver the board state after every move (and not
only start square and end square).

With PGN we can encode a chess position into a string.
This commit implies changes to logic of the pieces' shortnames. This
will break the client/server connection (at least for promotions).
2023-08-12 11:24:40 +02:00
Marco 81898d150b Restructure special move handling. 2023-07-11 22:28:07 +02:00