Struct shuuro::position::Position [−][src]
Expand description
Represents a state of the game
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.
Returns all legal moves where piece can be moved.
Returns a BitBoard of all squares at which a piece of the given color is pinned.
Checks if given color is in checkmate.
Makes the given move. Returns Err
if the move is invalid or any special condition is met.
Detecting insufficient material.
Undoes the last move.
Returns a list of squares to where the given piece at the given square can move.
Parses the given SFEN string and updates the game state.
Available squares for selected piece.
Returns true if hand with excluded piece is empty.
Generating random plinths.