diff --git a/src/commands/go.rs b/src/commands/go.rs index bcf0fb8..ebe3abf 100644 --- a/src/commands/go.rs +++ b/src/commands/go.rs @@ -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() } diff --git a/src/mcts/params.rs b/src/mcts/params.rs index 0332c88..593d929 100644 --- a/src/mcts/params.rs +++ b/src/mcts/params.rs @@ -17,7 +17,10 @@ impl Params { pub struct Param { val: f64, + + #[allow(unused)] min: f64, + #[allow(unused)] max: f64, } @@ -26,6 +29,7 @@ impl Param { Param { val, min, max } } + #[allow(unused)] pub fn set(&mut self, val: f64) { self.val = val; }