EPD
An EPD file is an ASCII text file which stores chess position. Each is separated from the previous
position by a carriage return and line feed.
The board is described first. The upper case letters PNBRQK represent the white pieces, and lower
case represent black pieces. Numbers indicate a series of empty squares from 1 to 8. The board
description starts at a8 to h8, then a7 to h7 etc. The separation of each rank is marked by a slash.
The side to move is next. It is separated from the board description by one space character and
consists of "w" or "b", indicating White or Black to move.
Next are the castling rights, again separated by a space. "Q" indicates that white can castle queen
side, "K" that he can castle king side. The lower case letters are used if black can castle. If neither side
can castle at all only a hyphen is used.
Finally the square on which a pawn can be captured en passant is given, in algebraic notation. If white
is to move this string can only be a5, b5, c5, etc., or a hyphen if no pawn can be captured en passant.
Likewise with black to move this string must be a4, b4, c4 etc., or a hyphen.
Here's an example of an EPD position:
8/2p5/7p/pP2k1pP/5pP1/8/1P2PPK1/8 w - - id "BS-06";c0 "f2-f3 ! wins";
Powered by mwForum 2.29.3 © 1999-2014 Markus Wichitill