Function inanis::state::text::fen::fen_to_castling

source ·
fn fen_to_castling(board: &mut Board, castling: &str) -> Result<(), String>
Expand description

Parses FEN’s castling rights and stores them into the board. Returns Err with the proper error message if castling couldn’t be parsed.