Page 1 of 1

Tool to convert "pv" from "epd" to "pgn" format

Posted: Mon Dec 10, 2018 5:58 pm
by Norm Pollock
I am working on a tool to convert "pv" data from an "epd"/"fen" record to "pgn" format (using FEN) so that it can be used in a PGN viewer/reader.

It will also convert any epd to "pgn" even if no "pv" is present. It will also output "bm" if no "pv" is present. It will just be a shell without moves, or 1 move for "bm".

There are a few constraints.
1) data from other opcodes is not carried forward, such as "ce" and "am".
2) all results are considered undetermined "*". However using PGN-extract with "--fixresulttags" can correct results if the "pv" ends with stalemate or checkmate.
3) the format of the output pgn can be somewhat wide or uneven, especially if LAN is used instead of SAN. "trim" in my "40H-PGN" toolbox can fix the formatting. PGN-extract converts LAN to SAN.
4) 5th and 6th fields in FEN string are set to "0 1" even if they are different in the input.

Keep in mind this is new and may have bugs. If so, please get back to me about bugs, or any suggestions.

download:
http://www.mediafire.com/file/r6ccrjraa ... t.exe/file

usage:
epdConvert filename.epd