test/data/game021.pgn

Thu, 03 Sep 2026 16:18:24 +0200

author
Mike Becker <universe@uap-core.de>
date
Thu, 03 Sep 2026 16:18:24 +0200
changeset 216
d0c3d3016650
parent 149
ea2448961441
permissions
-rw-r--r--

make castling rights part of the game state

required for issue #939
because creating a state from FEN
will not contain a move history

bonus: make is_check_position() robust

[Result "1-0"]

1. c4 Nf6 2. Nc3 g6 3. d3 Bg7 4. Bd2 O-O 5. g3 d6 6. Bg2 Be6 7. Bxb7 c6 8. Bxa8 Qc7 9. Qb3 Na6 10. Bb7 Rb8 11. Qa3 Nc5 12. Ba6 Nxa6 13. Qxa6 Rxb2 14. Be3 Rb6 15. Bxb6 axb6 16. Nf3 1-0

mercurial