[moves] Knight move generator and tests
This commit is contained in:
parent
3f3842c7c8
commit
faca844733
3 changed files with 170 additions and 0 deletions
|
@ -115,6 +115,10 @@ impl Board {
|
|||
pub fn pawns(&self, color: Color) -> BitBoard {
|
||||
self.pieces.find_pieces(Piece::pawn(color))
|
||||
}
|
||||
|
||||
pub fn knights(&self, color: Color) -> BitBoard {
|
||||
self.find_pieces(Piece::knight(color))
|
||||
}
|
||||
}
|
||||
|
||||
impl Board {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue