asdfjkl / jfxchess

JFXChess - Chess Program
https://asdfjkl.github.io/jfxchess
GNU General Public License v2.0
100 stars 22 forks source link

Always start @1 #87

Closed asdfjkl closed 3 years ago

asdfjkl commented 3 years ago

For PGNs with FENs where the halfmove number starts with zero, 0. is displayed as the first fullmove (instead of 1). Cf. PGN of Seirawan "winning chess strategies" book.

asdfjkl commented 3 years ago

This was a bug in the supplied fen [FEN "6R1/2p1qr1k/1p1p1r1p/p3p3/2P1P3/2P3Q1/PP3P2/2K3R1 w - - 0 0"] - the last digit MUST be at least 1 according to spec. Added a check to work around such incorrectly written FEN strings.