bug-gnu-chess
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: New PGN Parser


From: chess
Subject: Re: New PGN Parser
Date: Mon, 16 Jun 2003 11:33:35 -0500

At 10:58 PM 6/12/2003 +0100, you wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have committed the PGN parser contributed by D Wheeler into CVS head.

The parser supports a fuller set of the PGN standard and is more
tolerant of minor errors in the PGN.

I haven't tested this change extensively, and the merge was
"interesting" in places. If anyone feels motivated to load up some
random PGN files, feel free to try and let me know if there are issues.

Hello All !

I tried the command "book add book_1.00.pgn" with the result:
Games compiled: 145716, New & unique added: 265053 positions

145716 is the correct number of games, an improvement over the previous result:
Games compiled: 107799 New & unique added: 253597 positions

There is a minor bug.
While processing the book_1.00.pgn file,
eleven newlines are interspersed with the process indicator,
resulting in the following screen output:
Games processed: 15100
Games processed: 15170

Games processed: 15220





Games processed: 46010
Games processed: 71510

It seems that format errors in the pgn file trigger extra newlines, one per game.

In this case the format 'errors' are trailing backslashes in tag data.

*Mike





reply via email to

[Prev in Thread] Current Thread [Next in Thread]