Function poirebot::game::pieces::pawn::get_pawn_moves_and_attacks [−][src]
pub fn get_pawn_moves_and_attacks(
board: &Board,
color: Color,
origin: &BitBoard
) -> BitBoardⓘ
Generates a bitboard with the moves that can be performed by the pawns in the given bitboard.
Note that multiple pawns can be passed in the bitboard; to get the moves for individual pawns, iterate over the pawns and call this function with the singular bitboard for each pawn.