Module pleco::helper::prelude [−][src]
Default functions for accessing the statically computed tables.
Safety
Using any of these methods is inherently unsafe, as it is not guaranteed that they'll be
initiated correctly. Consider using the Helper
structure to guarantee initialization.
Documentation
These functions are documented in Helper
, rather than here.
Functions
adjacent_file |
Gets the adjacent files |
adjacent_sq_file |
Gets the adjacent files |
aligned |
Returns if three Squares are in the same diagonal, file, or rank. |
between_bb |
Get the line (diagonal / file / rank) |
bishop_moves |
Generate Bishop Moves |
distance_of_sqs |
Get the distance of two squares. |
forward_file_bb |
Returns the BitBoard of all squares in the file in front of the given one. |
forward_rank_bb |
Returns the BitBoard of all squares in the rank in front of the given one. |
init_statics |
Initializes the static structures. Guarantees to only allow being called once. |
king_moves |
Generate King Moves |
knight_moves |
Generate Knight Moves |
line_bb |
Get the line (diagonal / file / rank) |
passed_pawn_mask |
Returns a |
pawn_attacks_from |
Pawn attacks |
pawn_attacks_span |
Returns the |
piece_value |
Returns the value of a |
piecetype_value |
Returns the value of a |
psq |
Returns the score for a player's piece being at a particular square. |
queen_moves |
Generate Queen Moves |
ring_distance |
Returns the ring of bits surrounding the square sq at a specified distance. |
rook_moves |
Generate Rook Moves |
z_castle |
Returns the Zobrish hash for a castling right. |
z_ep |
Returns the zobrist hash for a given zobrist square. |
z_no_pawns |
Returns the Zobrist Hash for having no pawns. |
z_side |
Returns the Zobrist Hash for having a Black Player's turn. |
z_square |
Returns the Zobrist hash for a given square, and player / piece at that square. |