bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
223 stars 78 forks source link

Cannot load PGN using starting position #53

Closed dlbbld closed 3 years ago

dlbbld commented 3 years ago

When loading a PGN which uses a starting position, there is an exception, e.g.

[Event "?"]
[Site "?"]
[Date "????.??.??"]
[Round "?"]
[White "?"]
[Black "?"]
[Result "*"]
[SetUp "1"]
[FEN "3k4/8/8/8/3K4/3R4/8/8 w - - 15 100"]

100. Re3 Kc7 101. Re5 Kc6 *
bhlangonijr commented 3 years ago

Fixed in 1.2.4

dlbbld commented 3 years ago

I checked a few examples and they worked as expected.