Function inanis::engine::see::get_see_piece_index
source · fn get_see_piece_index(piece: usize) -> usize
Expand description
Converts piece
index to SEE piece index, which supports multiple pieces of the same type stored in one variable:
- 1 pawn (index 0)
- 3 knights/bishops (index 1-3)
- 2 rooks (index 4-5)
- 1 queen (index 6)
- 1 king (index 7)