test/data/game020.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. d4 d5 2. e3 e6 3. Nc3 Nf6 4. f3 Bb4 5. Bd2 O-O 6. Qe2 b6 7. O-O-O Ba6 8. Qe1 c5 9. Bxa6 Nxa6 10. dxc5 Nxc5 11. Nb5 Bxd2+ 12. Qxd2 Qd7 13. Nd4 e5 14. Nde2 Rfd8 15. Ng3 Qb5 16. Qc3 Na4 17. Qb3 Qc4 18. Nf5 Kf8 19. Qxc4 dxc4 20. Nh3 Nd5 21. e4 Ne3 22. Nxe3 1-0

mercurial