aboutsummaryrefslogtreecommitdiff
path: root/src/moves.rs
blob: 0dd53539ec75a5392c5af577487c552da956be36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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);
    }
}