bhlangonijr / chesslib

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

PGN parsing problem #120

Open johu56 opened 1 month ago

johu56 commented 1 month ago

GameLoader.loadNextGame() stops parsing if a isEndGame(line) results true. But this may happen also in a move comment (e.g. which refers to an other game with result). Of course, this rarely happens, but it does happen. isEndGame(line) must be followed by a check on a subsequent blank line.