Looking for PGN file tools
Moderators: hgm, Harvey Williamson, bob
Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Looking for PGN file tools
I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
Re: Looking for PGN file tools
You might want to check the PGN tool collection by Norm Pollock.
Re: Looking for PGN file tools
Maybe you find of interest the thread:mjlef wrote:I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
http://www.talkchess.com/forum/viewtopic.php?t=55210
-
G.B. Harms
- Posts: 42
- Joined: Sat Aug 08, 2009 12:18 pm
- Location: Almere
Re: Looking for PGN file tools
Hello Mark,
For your goal you can probably use the PGNFileReader class in
https://github.com/Bobcat/bobcat/blob/master/src/Pgn.h
It can be compiled independently from the other files in the project.
Example how to use it is in
https://github.com/Bobcat/bobcat/blob/m ... gnPlayer.h and
https://github.com/Bobcat/bobcat/blob/master/src/Tune.h
For your goal you can probably use the PGNFileReader class in
https://github.com/Bobcat/bobcat/blob/master/src/Pgn.h
It can be compiled independently from the other files in the project.
Example how to use it is in
https://github.com/Bobcat/bobcat/blob/m ... gnPlayer.h and
https://github.com/Bobcat/bobcat/blob/master/src/Tune.h
- Steve Maughan
- Posts: 1025
- Joined: Wed Mar 08, 2006 7:28 pm
- Location: Florida, USA
- Contact:
Re: Looking for PGN file tools
http://www.chessprogramming.net - Maverick Chess Engine
- Ozymandias
- Posts: 952
- Joined: Sun Oct 25, 2009 12:30 am
Re: Looking for PGN file tools
I was actually going to point him to it. Did you find a1 and b1 for SF6?Laskos wrote:Maybe you find of interest the thread:mjlef wrote:I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
http://www.talkchess.com/forum/viewtopic.php?t=55210
Re: Looking for PGN file tools
Ah, those fits, no, it was too tedious.Ozymandias wrote:I was actually going to point him to it. Did you find a1 and b1 for SF6?Laskos wrote:Maybe you find of interest the thread:mjlef wrote:I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
http://www.talkchess.com/forum/viewtopic.php?t=55210
Re: Looking for PGN file tools
Something like this ?mjlef wrote:I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
- Ozymandias
- Posts: 952
- Joined: Sun Oct 25, 2009 12:30 am
Re: Looking for PGN file tools
Them's the breaks, I guess. Did you at least get enough data for SF6, at move 70? I'm interested in the expected score, at an eval of 350cp.Laskos wrote:Ah, those fits, no, it was too tedious.Ozymandias wrote:I was actually going to point him to it. Did you find a1 and b1 for SF6?Laskos wrote:Maybe you find of interest the thread:mjlef wrote:I am looking for a good set of PGN file reading tools. Ideally, it would parse the file, not the win/loss/draw for each opponent by name, and have enough flexibility to parse embedded comment sin the file, like search depth or eval. I assume I will have to write the last part.
An example of the kind of thing I wold like to do is to scan a huge file of computer-computer games, and see how the win percentage of each program matches the eval, with output like this:
eval
0-10 cp: 51.2%
11-20 cp: 53%
21-30 cp 54%
and so on. It would be interesting to see how well programs eval correlate to the static eval in each searched position.
If you know of public domain PGN parsing tools that might help to this, let me know. If not, then I will write my own.
Mark
http://www.talkchess.com/forum/viewtopic.php?t=55210


