Forsyth–Edwards Notation (FEN) is a standard notation for describing a board position of a chess game. The purpose of FEN is to provide all the necessary information to restart a game from a particular position.
A FEN string defines a particular game position, all in one text line and using only the ASCII character set.
A text file with only FEN data records should have the file extension .fen
.
One FEN string consists of six fields separated by a space character:
<FEN> ::= <Piece Placement>
' ' <Side to move>
' ' <Castling ability>
' ' <En passant target square>
' ' <Halfmove clock>
' ' <Fullmove counter>
Further details: