use crate::{board::Square, bitboard::print}; #[derive(Debug)] pub struct Move { pub from: u8, pub to: u8, } impl Move { pub fn print(&self) { let bb = 1u64 << self.from | 1u64 << self.to; print(bb, format!("{:?}", self).as_str()); } } #[cfg(test)] mod tests { use super::*; #[test] fn mock() { let mov = Move { from: Square::E2 as u8, to: Square::E4 as u8 }; println!("{:?}", mov); } }