1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
use crate::Move;

#[derive(Debug, Clone)]
pub struct MoveCache<const N: usize> {
    pub cache: Vec<Move<{ N }>>,
}

impl<const N: usize> MoveCache<{ N }> {
    pub fn new() -> Self {
        Self { cache: vec![] }
    }

    pub fn new_with_capacity(capacity: usize) -> Self {
        Self {
            cache: Vec::with_capacity(capacity),
        }
    }
}