Update knight move generator
This commit is contained in:
parent
46495ce581
commit
216140bdbc
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue