summaryrefslogtreecommitdiff
path: root/src/strategy/monte_carlo_tree.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-09-08 10:29:59 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-09-08 10:29:59 +0200
commit0da5a09df776ba7f08550641d990707392c24e4c (patch)
tree31c3b8a0c5e31ac8b16b4656c76f08eab84e12e9 /src/strategy/monte_carlo_tree.rs
parent1a56ac6db8392aec65fe566505fa1df0214ed91a (diff)
Cleaned up compile warnings
Diffstat (limited to 'src/strategy/monte_carlo_tree.rs')
-rw-r--r--src/strategy/monte_carlo_tree.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strategy/monte_carlo_tree.rs b/src/strategy/monte_carlo_tree.rs
index 7d688f2..fe59e34 100644
--- a/src/strategy/monte_carlo_tree.rs
+++ b/src/strategy/monte_carlo_tree.rs
@@ -2,7 +2,6 @@ use engine::command::*;
use engine::status::GameStatus;
use engine::bitwise_engine::{Player, BitwiseGameState};
use engine::constants::*;
-use engine::geometry::*;
use rand::{Rng, XorShiftRng, SeedableRng};
use time::{Duration, PreciseTime};
@@ -104,6 +103,7 @@ impl NodeStats {
self.attempts += 1.;
}
+ #[cfg(feature = "benchmarking")]
fn count_explored(&self) -> usize {
1 + self.explored.iter().map(|(_, n)| n.count_explored()).sum::<usize>()
}