Struct shuuro::position::Position [−][src]
Fields
type_bb: [BitBoard; 7]
Implementations
Returns a bitboard containing pieces of the given player.
Returns the side to make a move next.
Returns a history of all moves made since the beginning of the game.
c is color that is supposed to win
Makes the given move. Returns Err
if the move is invalid or any special condition is met.
Returns a list of squares at which a piece of the given color is pinned.
Undoes the last move.
Returns a list of squares to where the given piece at the given square can move.
pub fn move_candidates2(&self, sq: Square, p: Piece) -> BitBoardⓘ
Parses the given SFEN string and updates the game state.