Commit Graph

7 Commits

Author SHA1 Message Date
Marco af993876fd Introduce check if the game has ended (checkmate/stalemate)
Introduce checkmate check and send out 'gameEnded' message
2024-01-17 23:06:48 +01: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 9c7bdf357d Make en passant and castling work. 2023-07-05 21:15:01 +02:00
Marco f733d9bb08 many many changes again. 2023-06-27 22:32:24 +02:00
Marco 3d4fee2631 Refactor a itsy bitsy tiny bit and add rook moves. 2023-06-26 23:58:40 +02:00
Marco 9793c37582 Many many changes 2023-06-25 16:11:29 +02:00
Marco 7f206b15fe Pieces are now an interface and starting to enforce rules. 2023-06-20 23:53:54 +02:00