From 216140bdbc9405d6af084bfa1936f702ab1c4ccf Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Sat, 6 Jan 2024 16:39:24 -0800 Subject: [PATCH] Update knight move generator --- board/src/moves/knight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/src/moves/knight.rs b/board/src/moves/knight.rs index 5a7e921..683b930 100644 --- a/board/src/moves/knight.rs +++ b/board/src/moves/knight.rs @@ -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);