Skip to content

Chess 960 PGN import castling error #52

@boombox2000

Description

@boombox2000

Trowing an error "Invalid move in PGN: O-O !" when importing a chess960 game with legal castling moves. This game iimports without issue to sites like Lichess.

Sample PGN:

[FEN "bqnrnkrb/pppppppp/8/8/8/8/PPPPPPPP/BQNRNKRB w KQkq - 0 1"]

  1. b3 c5 2. Nf3 d5 3. d4 b6 4. O-O Nf6 5. c4 dxc4 6. dxc5 Rxd1 7. Rxd1 Bxf3 8. Bxf6 gxf6 9. Qxh7 Qc7 10. exf3 bxc5 11. bxc4 Nd6 12. Qd3 f5 13. f4 Qa5 14. g3 Bd4 15. Rd2 Ne4 16. Bxe4 fxe4 17. Qe2 Bc3 18. Nb3 Qc7 19. Rd5 Bb4 20. Qxe4 e6 21. Qe5 Qb6 22. Qd6+ Ke8 23. Qd7+ Kf8 24. Qc8+ Ke7 25. Rd7+ Kf6 26. Qxg8

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions