clippy
This commit is contained in:
@@ -35,7 +35,7 @@ pub struct Move {
|
|||||||
pub is_trimmed: bool,
|
pub is_trimmed: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
static BVM: LazyLock<BoardValueMap> = LazyLock::new(|| BoardValueMap::new());
|
static BVM: LazyLock<BoardValueMap> = LazyLock::new(BoardValueMap::new);
|
||||||
|
|
||||||
impl Move {
|
impl Move {
|
||||||
pub fn new(coord: Option<CoordPair>, board: Board, color: Piece, agent_color: Piece) -> Self {
|
pub fn new(coord: Option<CoordPair>, board: Board, color: Piece, agent_color: Piece) -> Self {
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ pub enum Winner {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Precompute all possible chains for each position on the board
|
/// 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
|
/// Repersents a Othello game board at a certain space
|
||||||
#[derive(Copy, Clone, PartialEq, Eq)]
|
#[derive(Copy, Clone, PartialEq, Eq)]
|
||||||
|
|||||||
Reference in New Issue
Block a user