Skip to main content

bishop_attacks

Function bishop_attacks 

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

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

ยงPanics

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