summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-07-07 12:10:42 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-07-07 12:10:42 +0200
commit352ad4a297511dfe843bad5206879983ad34f3e2 (patch)
tree5e77aa34ea23b9080eaee4885ff1129c4249aec8 /src/bin
parentd385199c48d565d9ffc8948f137d716e534d5d0d (diff)
Cleaned up dead code
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/benchmark.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/benchmark.rs b/src/bin/benchmark.rs
index 098192c..0cee8d6 100644
--- a/src/bin/benchmark.rs
+++ b/src/bin/benchmark.rs
@@ -2,19 +2,19 @@ use std::path::Path;
use time::{Duration, PreciseTime};
-use steam_powered_wyrm::strategy::choose_move;
-use steam_powered_wyrm::json;
use steam_powered_wyrm::game;
+use steam_powered_wyrm::json;
+use steam_powered_wyrm::strategy::choose_move;
fn main() {
let max_time = Duration::milliseconds(19950);
let start_time = PreciseTime::now();
-
+
match json::read_state_from_json_file(&Path::new(&format!("./tests/example-state.json"))) {
Ok(json_state) => {
let new_board = game::GameBoard::new(json_state);
- let _ = choose_move(&new_board, None, &start_time, max_time);
- },
+ let _ = choose_move(&new_board, None, start_time, max_time);
+ }
Err(e) => {
eprintln!("WARN: State file could not be parsed: {}", e);
}