Struct pleco::board::MAGIC_HELPER []

pub struct MAGIC_HELPER { /* fields omitted */ }

Statically initialized lookup tables.

Methods from __Deref<Target = MagicHelper<'static, 'static>>

[src]

Returns the Zobrist Hash for a given piece as a given Square

[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.

[src]

Returns a zobrast hash of the castling rights, as defined by the Board

[src]

Returns Zobrist Hash of flipping sides.

[src]

Generate Knight Moves bitboard from a source square

[src]

Generate King moves bitboard from a source square

[src]

Generate Bishop Moves from a bishop square and all occupied squares on the board

[src]

Generate Rook Moves from a bishop square and all occupied squares on the board

[src]

Generate Queen Moves from a bishop square and all occupied squares on the board

[src]

Get the distance of two squares.

[src]

Get the line (diagonal / file / rank) that two squares both exist on, if it exists.

[src]

Get the line (diagonal / file / rank) between two squares, not including the squares, if it exists

[src]

Gets the adjacent files of the square

[src]

Pawn attacks from a given square, per player, Basically, given square x, returns the BitBoard of squares a pawn on x attacks

[src]

Returns if three Squares are in the same diagonal, file, or rank

Trait Implementations

impl __Deref for MAGIC_HELPER

The resulting type after dereferencing.

Dereferences the value.

impl LazyStatic for MAGIC_HELPER