test/data/game039.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 "0-1"]

1. c4 Nf6 2. Nc3 d5 3. cxd5 Nxd5 4. Nxd5 Qxd5 5. Nf3 Bf5 6. g3 e6 7. d3 Nc6 8. e4 Bxe4 9. dxe4 Qxe4+ 10. Be2 Rd8 11. Qb3 Nd4 12. Qa4+ c6 13. Qxa7 0-1

mercurial