OptionalboardPiece placement as a map from square to piece. Defaults to an empty board.
OptionalcastlingCastling availability. Defaults to all four castling moves available.
OptionalenEn passant target square, if any.
OptionalfullmoveGame turn counter — starts at 1 and increments after each black move.
After 1. e4 e5 2. Nf3 the fullmove number is 2. Defaults to 1.
OptionalhalfmoveNumber of half-moves since the last pawn advance or capture. Resets to
0 on every pawn move or capture. When it reaches 100 (50 full moves
per side) either player may claim a draw. Defaults to 0.
OptionalturnSide to move. Defaults to 'white'.
Plain-data representation of a chess position. All fields are optional — omitted fields use defaults (standard starting position values).