[bitboard] Add pawn attacks bitboards to the Library

This commit is contained in:
Eryn Wells 2024-01-28 09:08:57 -08:00
parent 164fe94bc0
commit 1f873879bb
2 changed files with 20 additions and 1 deletions

View file

@ -40,6 +40,10 @@ impl BitBoard {
library().ray(sq, dir)
}
pub fn pawn_attacks(sq: Square, color: Color) -> BitBoard {
library().pawn_attacks(sq, color)
}
moves_getter!(knight_moves);
moves_getter!(bishop_moves);
moves_getter!(rook_moves);