Tool to analyse all games in a PGN file

Programming Topics (Computer Chess) and technical aspects as test techniques, book building, program tuning etc

Moderator: Andres Valverde

Tool to analyse all games in a PGN file

Postby Onno Garms » 13 Apr 2008, 10:14

Does anybody know a tool to analyse all games in a PGN file automatically?

By analysing, I mean what Shredder GUI does in analysis: print evaluation by some engine for every position in the game and print the move that the engine would play. Those are inserted as comments into the PGN notation.

Shredder does so for one game. You have so save the annotation and start analysis of the next game manually. scid seems to have the same problem.

I'm looking for a tool that takes a pgn file as input, does an analysis of all games and writes another pgn file as output. This would enable me to analyse several games over night.

Does such a tool exist?
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany

Re: Tool to analyse all games in a PGN file

Postby Harald Johnsen » 13 Apr 2008, 13:47

Perhaps http://chessdb.sourceforge.net/tutorial ... engine.php
I've not tried but apprently it can annotate more than one game.

HJ.
User avatar
Harald Johnsen
 
Posts: 43
Joined: 20 Aug 2007, 17:01
Location: France

Re: Tool to analyse all games in a PGN file

Postby Onno Garms » 13 Apr 2008, 14:09

In another thread I found that Volker did such annotation. He used scid. As this does not work with my version of scid (3.6.1, latest from sourceforge) I'm currenty trying to upgrade to 3.6.22 (from http://prolinux.free.fr/scid/)
User avatar
Onno Garms
 
Posts: 128
Joined: 17 Feb 2007, 11:17
Location: Bonn, Germany

Re: Tool to analyse all games in a PGN file

Postby bob » 14 Apr 2008, 21:24

Crafty does this automatically.

The only issue is that it is best to have the "Name" tag in the PGN, and that the name be consistent. Then you can do something like:

annotateh games.pgn Hyatt 1-999 .5 60

(or whatever annotate options you want). It will annotate each game in the file, one by one, and always annotate for the side playing "Hyatt". Otherwise, you will have to use this:

annotateh games.pgn bw 1-999 .5 60

which will annotate every game for _both_sides which will take about twice as long to complete.
User avatar
bob
 
Posts: 156
Joined: 10 May 2006, 17:59


Return to Programming and Technical Discussions

Who is online

Users browsing this forum: No registered users and 4 guests