diff options
Diffstat (limited to 'src/moves.rs')
-rw-r--r-- | src/moves.rs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/moves.rs b/src/moves.rs index 3f55b2f..d6695a1 100644 --- a/src/moves.rs +++ b/src/moves.rs @@ -1,9 +1,18 @@ use crate::{square::Square, bitboard::print}; #[derive(Debug, Clone, Copy)] +pub enum MoveKind { + Quiet, + Capture, + Castle, + EnPassant, +} + +#[derive(Debug, Clone, Copy)] pub struct Move { pub source: Square, pub target: Square, + pub kind: MoveKind, } impl Move { @@ -21,7 +30,7 @@ mod tests { #[test] fn mock() { - let mov = Move { source: Square::E2, target: Square::E4 }; + let mov = Move { source: Square::E2, target: Square::E4, kind: MoveKind::Quiet }; println!("{:?}", mov); } } |