[−][src]Function pleco::helper::prelude::pawn_attacks_span
ⓘImportant traits for BitBoard
pub fn pawn_attacks_span(player: Player, sq: SQ) -> BitBoard
Returns the BitBoard
of all squares that can be attacked by a pawn
of the same color when it moves along its file, starting from the
given square. Basically, if the pawn progresses along the same file
for the entire game, this bitboard would contain all possible forward squares
it could attack
Safety
The Square must be within normal bounds, or else a panic or undefined behvaior may occur.