Struct pleco::board::MAGIC_HELPER
[−]
pub struct MAGIC_HELPER { /* fields omitted */ }
Statically initialized lookup tables.
Methods from __Deref<Target = MagicHelper<'static, 'static>>
fn z_piece_at_sq(&self, piece: Piece, square: SQ) -> u64
[src]
Returns the Zobrist Hash for a given piece as a given Square
fn z_ep_file(&self, square: SQ) -> u64
[src]
Returns the zobrist hash for the given Square of Enpassant Doesnt assume the EP square is a valid square. It will take the file of the square regardless.
fn z_castle_rights(&self, castle: u8) -> u64
[src]
Returns a zobrast hash of the castling rights, as defined by the Board
fn z_side(&self) -> u64
[src]
Returns Zobrist Hash of flipping sides.
fn knight_moves(&self, square: SQ) -> BitBoard
[src]
Generate Knight Moves bitboard from a source square
fn king_moves(&self, square: SQ) -> BitBoard
[src]
Generate King moves bitboard from a source square
fn bishop_moves(&self, occupied: BitBoard, square: SQ) -> BitBoard
[src]
Generate Bishop Moves from a bishop square and all occupied squares on the board
fn rook_moves(&self, occupied: BitBoard, square: SQ) -> BitBoard
[src]
Generate Rook Moves from a bishop square and all occupied squares on the board
fn queen_moves(&self, occupied: BitBoard, square: SQ) -> BitBoard
[src]
Generate Queen Moves from a bishop square and all occupied squares on the board
fn distance_of_sqs(&self, square_one: SQ, square_two: SQ) -> u8
[src]
Get the distance of two squares.
fn line_bb(&self, square_one: SQ, square_two: SQ) -> BitBoard
[src]
Get the line (diagonal / file / rank) that two squares both exist on, if it exists.
fn between_bb(&self, square_one: SQ, square_two: SQ) -> BitBoard
[src]
Get the line (diagonal / file / rank) between two squares, not including the squares, if it exists
fn adjacent_file(&self, square: SQ) -> BitBoard
[src]
Gets the adjacent files of the square
fn pawn_attacks_from(&self, square: SQ, player: Player) -> BitBoard
[src]
Pawn attacks from a given square, per player, Basically, given square x, returns the BitBoard of squares a pawn on x attacks
fn aligned(&self, s1: SQ, s2: SQ, s3: SQ) -> bool
[src]
Returns if three Squares are in the same diagonal, file, or rank
Trait Implementations
impl __Deref for MAGIC_HELPER
type Target = MagicHelper<'static, 'static>
The resulting type after dereferencing.
fn deref(&self) -> &MagicHelper<'static, 'static>
Dereferences the value.