summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2022-04-19 21:26:49 +0200
committerJustin Wernick <justin@worthe-it.co.za>2022-04-19 21:26:49 +0200
commit7ec48d0d454499177b63bc5bd512a3a2d6baa839 (patch)
tree23d34d45dbb3ae977710361501a3dde3544734d1 /src/bin
parent1e21ebed15321aacbba53121cb40bbc60f4db1cc (diff)
Refile for merging repos
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/perf-test.rs26
1 files changed, 0 insertions, 26 deletions
diff --git a/src/bin/perf-test.rs b/src/bin/perf-test.rs
deleted file mode 100644
index ee0c2be..0000000
--- a/src/bin/perf-test.rs
+++ /dev/null
@@ -1,26 +0,0 @@
-extern crate zombot;
-extern crate time;
-use time::{PreciseTime, Duration};
-
-use zombot::*;
-use zombot::engine::constants::*;
-
-const STATE_PATH: &str = "tests/state0.json";
-
-use std::process;
-
-fn main() {
- println!("Running bitwise engine");
- let start_time = PreciseTime::now();
- let state = match input::json::read_bitwise_state_from_file(STATE_PATH) {
- Ok(ok) => ok,
- Err(error) => {
- println!("Error while parsing JSON file: {}", error);
- process::exit(1);
- }
- };
- let max_time = Duration::milliseconds(MAX_TIME_MILLIS);
-
- #[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);
-}