Skip to main content

Module bitboard

Module bitboard 

Source

Constants§

ALL_SQUARES
Bitboard with all 64 squares set.
FILE_ABB
Bitboard with all squares on file A set.
FILE_BBB
FILE_CBB
FILE_DBB
FILE_EBB
FILE_FBB
FILE_GBB
FILE_HBB
RANK_1BB
RANK_2BB
RANK_3BB
RANK_4BB
RANK_5BB
RANK_6BB
RANK_7BB
RANK_8BB

Functions§

between_bb
Return the bitboard of squares strictly between s1 and s2.
line_bb
Return the bitboard of all squares on the same rank, file, or diagonal as s1 and s2 (including both endpoints).