Applies bishop magic for the square specified by
square, using built-in magic number from
BISHOP_MAGIC_NUMBERS.
Applies a magic number for a set of permutations, attacks and square.
Applies rook magic for the square specified by
square, using built-in magic number from
ROOK_MAGIC_NUMBERS.
Generates a bishop magic number for the square specified by square.
Generates a magic number for a set of permutations and attacks, using shift proper for the specified square.
Generates a rook magic number for the square specified by square.
Helper function to get all possible to move squares, considering occupancy_bb, starting from the square
specified by square and going into the direction.
Gets a bishop attacks for the square specified by square, occupancy occupancy_bb.
Gets a bishop mask for the square specified by square, without considering occupancy.
Gets a bishop moves for the square specified by square, considering occupancy_bb.
Gets a king moves for the square specified by square, without considering an occupancy.
Gets a knight moves for the square specified by square, without considering an occupancy.
Gets index-th permutation of the mask.
Gets a queen moves for the square specified by square, considering occupancy_bb.
Gets a rook attacks for the square specified by square, considering occupancy_bb.
Gets a rook mask for the square specified by square, without considering occupancy.
Gets a rook moves for the square specified by square, considering occupancy_bb.
Initialize movegen for rooks and bishops.