test/data/game046.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. Nf3 Nf6 3. e3 g6 4. c4 dxc4 5. Bxc4 Bg7 6. O-O O-O 7. Nc3 a6 8. a3 b5 9. Be2 Bd7 10. b4 Be8 11. Bb2 Nbd7 12. a4 Nd5 13. Nxd5 Nb8 14. Nc3 c5 15. bxc5 e6 16. axb5 Bxb5 1-0

mercurial