summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-06-24 21:04:27 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-06-24 21:04:27 +0200
commit1aeab6da05a0c7b7dad4d06a38b282a82d5e1a51 (patch)
treede76a41b53f4ba383bda118dfb97bd2ff53f7a23 /src/main.rs
parent6d6cb9e39c4ec3f113833042f1b7bc8082c5d650 (diff)
New command types for select and bombs
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs
index b898fb5..de2940d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -4,7 +4,7 @@ use std::path::Path;
use time::{Duration, PreciseTime};
-use steam_powered_wyrm::command::Command;
+use steam_powered_wyrm::command::{Command, Action};
use steam_powered_wyrm::strategy::choose_move;
use steam_powered_wyrm::json;
use steam_powered_wyrm::game;
@@ -39,7 +39,7 @@ fn main() {
},
Err(e) => {
eprintln!("WARN: State file could not be parsed: {}", e);
- Command::DoNothing
+ Command::new(Action::DoNothing)
}
};
println!("C;{};{}", round_number, command);