[−][src]Module pleco::board::castle_rights
Module for the Castling
structure, which helps provide an easy way for the
Board
to keep track of the various castling rights available for each player.
Alongside keeping track of castling rights, it also keeps track of if a player has castled.
At it's core, a Castling
is a simple u8 which sets bits for each possible castling right.
This is necessary to keep track of for a chess match due to determining future castlings.
Structs
Castling | Structure to help with recognizing the various possibilities of castling. |