summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-09-06 21:20:04 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-09-06 21:20:04 +0200
commit4ad0035f4f11b41e400a1f567fdcd3541fa3f21e (patch)
tree95e8ad882f6b6c8be9c6d7a4bed2eaa7b5d2caa2 /src/main.rs
parent6c8d7fc3a3a00fcee50592ef618d2b88fed0dbfe (diff)
Filled in the remaining TODOs on the tree search
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 45fd356..26d6eac 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -22,7 +22,6 @@ fn write_command(filename: &str, command: Command) -> Result<(), Box<Error> > {
Ok(())
}
-
fn main() {
let start_time = PreciseTime::now();
let max_time = Duration::milliseconds(MAX_TIME_MILLIS);
@@ -34,6 +33,8 @@ fn main() {
process::exit(1);
}
};
+
+ // TODO: Opening playbook?
let command = strategy::monte_carlo::choose_move(&state, start_time, max_time);
match write_command(COMMAND_PATH, command) {