Module pleco::templates
[−]
[src]
Miscellaneos functions, traits, and constants to be used by other modules.
Structs
AllGenType | |
BishopType | |
BlackType | |
CapturesGenType | |
EvasionsGenType | |
KingType | |
KnightType | |
NonEvasionsGenType | |
PawnType | |
QueenType | |
QuietChecksGenType | |
QuietsGenType | |
RookType | |
WhiteType |
Enums
CastleType |
Types of Castling available |
File |
Enum for the Files of a Chessboard. |
GenTypes |
Publicly available move-generation types. |
Piece |
Enum for all the possible Pieces. |
Player |
Enum to represent the Players White & Black. |
Rank |
Enum for the Ranks of a Chessboard. |
Square |
Squares available to play |
Constants
Traits
GenTypeTrait | |
PieceTrait | |
PlayerTrait |
Functions
bb_to_sq | |
castle_rights_mask | |
copy_occ_bbs | |
copy_piece_bbs | |
file_bb | |
file_idx_of_sq | |
file_of_sq | |
make_sq | |
parse_sq | |
pawn_push | |
print_bitboard | |
print_u64 | |
rank_bb | |
rank_idx_of_sq | |
rank_of_sq | |
relative_rank | |
relative_rank_of_sq | |
relative_square |
Returns the relative square from a given square. |
return_start_bb | |
reverse_byte | |
reverse_bytes | |
sq_is_okay | |
sq_to_bb | |
value_of_piece |
Returns the relative value of a piece. |
Type Definitions
BitBoard |
BitBoard is a u64, where the bits of each index represent a square. |
SQ |
Alias for a certain square number. |