This commit is contained in:
2025-02-28 18:21:58 -05:00
parent fc02a9e512
commit 72b146db55
2 changed files with 2 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ pub struct Move {
pub is_trimmed: bool,
}
static BVM: LazyLock<BoardValueMap> = LazyLock::new(|| BoardValueMap::new());
static BVM: LazyLock<BoardValueMap> = LazyLock::new(BoardValueMap::new);
impl Move {
pub fn new(coord: Option<CoordPair>, board: Board, color: Piece, agent_color: Piece) -> Self {

View File

@@ -15,7 +15,7 @@ pub enum Winner {
}
/// Precompute all possible chains for each position on the board
static ADJ_LOOKUP: LazyLock<PosMap<ChainCollection>> = LazyLock::new(|| gen_adj_lookup());
static ADJ_LOOKUP: LazyLock<PosMap<ChainCollection>> = LazyLock::new(gen_adj_lookup);
/// Repersents a Othello game board at a certain space
#[derive(Copy, Clone, PartialEq, Eq)]