Expand description
Mappings of occupied squares to the attacked squares for each piece. The mappings are pre-calculated where possible to provide an efficient way of generating moves.
The implementation uses BMI2 (if available) for performance (reference), specifically the PEXT instruction for PEXT Bitboards.