Skip to content

Commit

Permalink
chore: fix a bunch of warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed May 31, 2024
1 parent 86dcd06 commit 6007a2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/commands/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ pub fn search_std(position: ataxx::Position, tc: StandardTC) -> ataxx::Move {
}
}

// Verify the tree.
debug_assert!(tree.verify().is_ok());

tree.best_move()
}

Expand Down
4 changes: 4 additions & 0 deletions src/mcts/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ impl Params {

pub struct Param {
val: f64,

#[allow(unused)]
min: f64,
#[allow(unused)]
max: f64,
}

Expand All @@ -26,6 +29,7 @@ impl Param {
Param { val, min, max }
}

#[allow(unused)]
pub fn set(&mut self, val: f64) {
self.val = val;
}
Expand Down

0 comments on commit 6007a2a

Please sign in to comment.