Computer Chess Club Archives


Search

Terms

Messages

Subject: HOW TO question: remove duplicates from PGN games with FEN tag only?

Author: Danniel Corbit

Date: 19:22:25 08/04/98


I have a bunch of game test positions as PGN, but I want to remove duplicates.
None of the tools I have will work properly.  Does anyone know of a tool which
will take stuff like this:
[Event "Computer Chess Test Suite"]
[Round "?"]
[Site "EPD2diag V1.3"]
[Date "1998.8.4"]
[White "all"]
[Black "EPD00001"]
[Result "*"]
[SetUp "1"]
[FEN "1B1b4/8/p3Pk2/1ppr2p1/4R1P1/1P3P2/P1K5/8 w - - 0 0"]
[Source "H:\chess\pos_test.pgn"]

*

[Event "Computer Chess Test Suite"]
[Round "?"]
[Site "EPD2diag V1.3"]
[Date "1998.8.4"]
[White "all"]
[Black "EPD00003"]
[Result "*"]
[SetUp "1"]
[FEN "1B1Q1R2/8/qNrn3p/2p1rp2/Rn3k1K/8/5P2/bbN4B w - - 0 0"]
[Source "H:\chess\pos_test.pgn"]

*

And throw out the duplicates?
--
Hypertext C-FAQ: http://www.eskimo.com/~scs/C-faq/top.html
C-FAQ ftp: ftp://rtfm.mit.edu, C-FAQ Book: ISBN 0-201-84519-9
Try "C Programming: A Modern Approach" ISBN 0-393-96945-2
Want Software?  Algorithms?  Pubs? http://www.infoseek.com



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.