diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-06-25 20:26:05 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-06-25 20:26:05 +0200 |
commit | 286763000e4e5919c07f2840c64ecc7932530175 (patch) | |
tree | 5d89610326de388ec1937f07a9562df85699fe9e /src/engine/command.rs | |
parent | 7bf7d8d977733cb02258b4a79faf2417c52e9323 (diff) |
Updated test cases and made engine work correctly according to tests
I don't think a tesla appeared in this match. I need to contrive a bot
to build one.
Diffstat (limited to 'src/engine/command.rs')
-rw-r--r-- | src/engine/command.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine/command.rs b/src/engine/command.rs index 7a2594d..bcfc352 100644 --- a/src/engine/command.rs +++ b/src/engine/command.rs @@ -13,7 +13,7 @@ impl fmt::Display for Command { match *self { Command::Nothing => write!(f, ""), Command::Build(p, b) => write!(f, "{},{},{}", p.x, p.y, b as u8), - Command::Deconstruct(p) => write!(f, "3,{},{}", p.x, p.y), + Command::Deconstruct(p) => write!(f, "{},{},3", p.x, p.y), } } } |