Update knight move generator

This commit is contained in:
Eryn Wells 2024-01-06 16:39:24 -08:00
parent 46495ce581
commit 216140bdbc

View file

@ -97,7 +97,7 @@ mod tests {
#[test]
fn one_knight() {
let mut pos = Position::empty();
pos.place_piece(&Piece::knight(Color::White), &Square::e4())
pos.place_piece(Piece::knight(Color::White), Square::E4)
.expect("Failed to place knight on e4");
let generator = KnightMoveGenerator::new(&pos, Color::White);