summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/perf-test.rs8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/bin/perf-test.rs b/src/bin/perf-test.rs
index da7a0a5..ee0c2be 100644
--- a/src/bin/perf-test.rs
+++ b/src/bin/perf-test.rs
@@ -10,10 +10,6 @@ const STATE_PATH: &str = "tests/state0.json";
use std::process;
fn main() {
- bitwise();
-}
-
-fn bitwise() {
println!("Running bitwise engine");
let start_time = PreciseTime::now();
let state = match input::json::read_bitwise_state_from_file(STATE_PATH) {
@@ -24,5 +20,7 @@ fn bitwise() {
}
};
let max_time = Duration::milliseconds(MAX_TIME_MILLIS);
- strategy::monte_carlo::choose_move(&state, start_time, max_time);
+
+ #[cfg(feature = "full-monte-carlo-tree")] strategy::monte_carlo_tree::choose_move(&state, start_time, max_time);
+ #[cfg(not(feature = "full-monte-carlo-tree"))] strategy::monte_carlo::choose_move(&state, start_time, max_time);
}