diff options
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index 9ddaa50..5fe8c18 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,13 +14,12 @@ use crate::parser::*; use argparse::*; use chrono::Local; use std::env; -use std::io::Error; use std::time::SystemTime; struct GUI { screen: Window, - width: i32, - height: i32, + // width: i32, + // height: i32, game_log: GameLog, message_log: MessageLog, action_entry: ActionEntry, @@ -100,8 +99,8 @@ fn init_gui(size: u8) -> GUI { GUI { screen, - width, - height, + // width, + // height, game_log, message_log, action_entry, @@ -258,7 +257,8 @@ fn main() { let act = parse_action(stone_owner, &raw); match act { Err(err) => { - gui.message_log.log_error(format!("Input {}: {}", raw, err)); + gui.message_log + .log_error(format!("Input \"{}\": {}", raw, err)); if engine_turn { break; } @@ -278,7 +278,6 @@ fn main() { match game.perform_action(act) { Err(e) => { gui.message_log.log_error(e); - let current = game.query_current_player(); if engine_turn { gui.message_log.log_error(String::from( "Error: external and internal game states disagree.", |
