[moves] Knight move generator and tests

This commit is contained in:
Eryn Wells 2025-05-25 11:05:10 -07:00
parent 3f3842c7c8
commit faca844733
3 changed files with 170 additions and 0 deletions

View file

@ -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 {