Structs§
Functions§
- Converts Board into the EPD.
- Converts Board into the FEN.
- Converts castling rights from the
board
into the FEN chunk. - Converts en passant from the
board
into the FEN chunk. - Parses FEN’s castling rights and stores them into the
board
. Returns Err with the proper error message ifcastling
couldn’t be parsed. - Parses FEN’s en passant and stores it into the
board
. Returns Err with the proper error message ifen_passant
couldn’t be parsed. - Parses FEN’s fullmove number and stores it into the
board
. Returns Err with the proper error message iffullmove_number
couldn’t be parsed. - Parses FEN’s halfmove clock and stores it into the
board
. Returns Err with the proper error message ifhalfmove_clock
couldn’t be parsed. - Parses FEN’s pieces and stores them into the
board
. Returns Err with the proper error message ifpieces
couldn’t be parsed. - Parses FEN’s active color and stores it into the
board
. Returns Err with the proper error message ifstm
couldn’t be parsed. - Converts fullmove number from the
board
into the FEN chunk. - Gets a value of the
name
parameters from the specifiedepd
. Returns None if the parameter was not found. - Converts halfmove clock from the
board
into the FEN chunk. - Converts pieces from the
board
into the FEN chunk. - Converts active color from the
board
into the FEN chunk.