From 46e9fcdcce5730827355db9449c41dc0a0e42b1f Mon Sep 17 00:00:00 2001 From: eug-vs Date: Tue, 21 Feb 2023 05:22:54 +0300 Subject: refactor: use bitboard trait --- src/moves.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moves.rs') 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 -- cgit v1.2.3