diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/main.rs b/src/main.rs index 34d0061..d6d9a4c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,14 +1,11 @@ use std::io::prelude::*; use std::io::stdin; +use std::path::Path; -mod command; -mod json; -mod geometry; -mod game; -mod strategy; - -use command::Command; -use strategy::choose_move; +use steam_powered_wyrm::command::Command; +use steam_powered_wyrm::strategy::choose_move; +use steam_powered_wyrm::json; +use steam_powered_wyrm::game; fn main() { let mut game_board = None; @@ -16,7 +13,7 @@ fn main() { let round_number = line.expect("Failed to read line from stdin: {}"); let command = - match json::read_state_from_json_file(&format!("./rounds/{}/state.json", round_number)) { + match json::read_state_from_json_file(&Path::new(&format!("./rounds/{}/state.json", round_number))) { Ok(json_state) => { match &mut game_board { None => { |