diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-02-21 05:22:54 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-02-21 05:28:45 +0300 |
commit | 46e9fcdcce5730827355db9449c41dc0a0e42b1f (patch) | |
tree | 7b9903446bd7884df6a22ddd2c6a2b8a6dcc3d44 /src/moves.rs | |
parent | 02ebad55af6c76ac9e36832f9be041f547f63b7c (diff) | |
download | chessnost-46e9fcdcce5730827355db9449c41dc0a0e42b1f.tar.gz |
refactor: use bitboard trait
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 |