A New White/Black Extraction Tool

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

A New White/Black Extraction Tool

Postby Norm Pollock » 25 Aug 2006, 22:32

As I promised yesterday in another thread, I wrote a utility that extracts white games only, black games only or all games from a pgn file by player(s) whose name begins with a user supplied string. Besides the output pgn file (the input pgn file is unaffected) there is a manifest file that gives the FULL name of the players for each game extracted.

The link is on Jim Ablett's excellent site:

http://homepages.tesco.net/henry.ablett/jims.html

The program is called "Extract". It is easy to use.

example of usage in a command window:

extract alpha.pgn Karp black

this will extract all games in alpha.pgn played as black by player(s) whose name begins with "Karp". An accompanying manifest file helps you decide which games to delete in the event that you get more games than you expected. For example you might get games from Alexander Karpov and/or Aleksandr Karpatchev as well as Anatoly Karpov. A readme.txt is included.

If you combine this tool with another one of mine on Jim's site, you can then separate the black games into files for wins, losses and draws.
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52

Re: A New White/Black Extraction Tool

Postby Dann Corbit » 26 Aug 2006, 02:32

You can also use SCID for this.
Dann Corbit
 

Re: A New White/Black Extraction Tool

Postby Norm Pollock » 26 Aug 2006, 15:31

Dann Corbit wrote:You can also use SCID for this.


True. SCID can do much more, and so can pgn-extract. And I do mention it in the readme.

This tool is limited to extraction only by player name. For more complex extractions, the user should use SCID and/or pgn-extract.
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 33 guests