inanis
1.6.0
In inanis::state::movegen
Structs
MagicSquare
Constants
BISHOP_MAGIC_NUMBERS
BISHOP_SHIFTS
ROOK_MAGIC_NUMBERS
ROOK_SHIFTS
Statics
BISHOP_SQUARES
ROOK_SQUARES
Functions
apply_bishop_magic
apply_magic_for_square
apply_rook_magic
generate_bishop_magic_number
generate_magic_number
generate_rook_magic_number
get_attacks
get_bishop_attacks
get_bishop_mask
get_bishop_moves
get_king_moves
get_knight_moves
get_permutation
get_queen_moves
get_rook_attacks
get_rook_mask
get_rook_moves
init
?
Function
inanis
::
state
::
movegen
::
get_permutation
source
·
[
−
]
fn get_permutation(mask:
u64
, index:
u64
) ->
u64
Expand description
Gets
index
-th permutation of the
mask
.