Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Looking for a tool : PGN -> EPD

Author: Tim Foden

Date: 04:22:57 02/12/02

Go up one level in this thread


On February 11, 2002 at 18:04:14, Peter Berger wrote:

>Forgot the wishlist : none of them adds move numbers - is there another one that
>does ?

Where would you want the move numbers to be added?  Is there an EPD opcode for
them?

... I guess I could look in the docs...  fmvn -- full move number, and hmvc --
half move clock.

So I guess that from input like this...

[pgn headers]

1. e4 d5 *

... you are looking for output like this?

rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - bm e4; fmvn 1; hmvc 0;
rnbqkbnr/pppppppp/8/8/4P3/8/PPPP1PPP/RNBQKBNR b KQkq - bm d5; fmvn 1; hmvc 0;
rnbqkbnr/ppp1pppp/8/3p4/4P3/8/PPPP1PPP/RNBQKBNR w KQkq - fmvn 2; hmvc 0;

(my position code only set EP if it is actually posible to capture EP).

I could probably cobble a PGN to EPD in about half an hour, as I have code for
reading PGN and code for spitting out FEN as part of my chess library.

Cheers, Tim.



This page took 0.01 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.