Skip to main content

rook_attacks

Function rook_attacks 

Source
pub fn rook_attacks(square: u8, occupancy: u64) -> u64
Expand description

Generate Rook attacks for a square given occupancy using the Magic bitboard backend.

ยงPanics

Panics if square >= 64 (the magic tables are indexed by square).