diff options
Diffstat (limited to 'src/moves.rs')
-rw-r--r-- | src/moves.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/moves.rs b/src/moves.rs index 57103d0..58fb979 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -1,4 +1,4 @@ -use crate::{square::Square, bitboard::print, board::PieceType}; +use crate::{square::Square, bitboard::BitboardFns, board::PieceType}; #[derive(Debug, Clone, PartialEq, Eq, Copy)] pub enum MoveKind { @@ -20,7 +20,7 @@ pub struct Move { impl Move { pub fn print(&self) { let bb = self.source.to_bitboard() | self.target.to_bitboard(); - print(bb, format!("{:?}", self).as_str()); + bb.print(format!("{:?}", self).as_str()); } /// Tactical move is a move that changes material score |