From c7b627574945a8c492e05db168726737cd301b39 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 22 Jan 2023 04:31:43 +0300 Subject: feat: add initial moves module --- src/moves.rs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/moves.rs (limited to 'src/moves.rs') diff --git a/src/moves.rs b/src/moves.rs new file mode 100644 index 0000000..0dd5353 --- /dev/null +++ b/src/moves.rs @@ -0,0 +1,21 @@ +use crate::board::Square; + +#[derive(Debug)] +pub struct Move { + from: Square, + to: Square, +} + +// TODO: think about the size +type MoveList = [Move; 1024]; + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn mock() { + let mov = Move { from: Square::E2, to: Square::E4 }; + println!("{:?}", mov); + } +} -- cgit v1.2.3