[bitboard] Add pawn attacks bitboards to the Library
This commit is contained in:
parent
164fe94bc0
commit
1f873879bb
2 changed files with 20 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue