Is there an easy way to...

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Rebel, chrisw

User avatar
Rebel
Posts: 7004
Joined: Thu Aug 18, 2011 12:04 pm
Full name: Ed Schröder

Re: Is there an easy way to...

Post by Rebel »

Zenmastur wrote: Tue Mar 10, 2020 8:36 pm The only thing I haven't figured out yet is how to process the EPDs into a dot.bin book when I'm done. Any suggestions?
You need use POLYGLOT for that.

http://rebel13.nl/download/books.html
90% of coding is debugging, the other 10% is writing bugs.
Norm Pollock
Posts: 1056
Joined: Thu Mar 09, 2006 4:15 pm
Location: Long Island, NY, USA

Re: Is there an easy way to...

Post by Norm Pollock »

Zenmastur wrote: Sun Mar 08, 2020 3:05 am ...strip duplicate EPDs from a file?

And is the a program to break a PGN in to EPD records?

Regards,

Zenmastur
To strip duplicate EPDs, use "epdSingle" from "40H-EPD Tools". Readme is below. You can find the download at http://komodochess.com/pub/40H-pgn-utilities/

Breaking a PGN into EPD records is easily done with "PGN-Extract" by David Barnes. Use "-Wepd" flag.

Code: Select all

=========================(24) epdSingle ============================

"epdSingle" removes records containing the same position as a previous
record in the "epd" file. The removed records are saved.

Positions having the same "piece placement", "side to move", "castling 
rights' and valid "en passant" target square values, are considered to 
be the same position.  

Positions with the same "piece placement", but differing in either
side to move, castling rights or valid "en passant" rights are 
considered to be different positions. 

"epdSingle" requires false/invalid "enpassant" target square values 
to be removed prior to use. The tool "epdEnPass" removes them.

Records with the same position can have different opcodes.

The order of records and the opcodes are not changed. 

Blank lines are removed.

The output file is outA.epd. The removed records are saved in
excludeA.epd

Syntax:   epdSingle filename.epd

Example:  epdEnPass alpha.epd
          epdSingle outEP.epd
        
Output:   outA.epd, excludeA.epd 

Updated links for 40H Tools and Databases
http://40Hchess.epizy.com
http://nk-qy.info/40h