summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2018-08-09 22:08:16 +0200
committerJustin Worthe <justin@worthe-it.co.za>2018-08-09 22:08:16 +0200
commit52c4dc1dd7bbe6546e0a2b3eeb4b5ec78d3fb582 (patch)
treea8c5fd40b0b41abd6036888ad78b5b5083f0f66e /tests
parentb2cbd720858d482257da98839a5c8ee8c85c6b62 (diff)
Updated point representation to better match my heavy bitfield usage
Diffstat (limited to 'tests')
-rw-r--r--tests/live_comparison.rs14
1 files changed, 1 insertions, 13 deletions
diff --git a/tests/live_comparison.rs b/tests/live_comparison.rs
index 5761454..3297fa8 100644
--- a/tests/live_comparison.rs
+++ b/tests/live_comparison.rs
@@ -3,7 +3,6 @@ extern crate zombot;
use zombot::input::json;
use zombot::engine::command::{Command, BuildingType};
use zombot::engine::geometry::Point;
-use zombot::engine::constants::*;
use std::fs::File;
use std::io::prelude::*;
@@ -56,16 +55,5 @@ fn read_player_command(filename: &str) -> Command {
}
fn read_opponent_command(filename: &str) -> Command {
- match read_player_command(filename) {
- Command::Nothing => Command::Nothing,
- Command::Build(p, b) => Command::Build(Point::new(
- FULL_MAP_WIDTH - p.x - 1,
- p.y
- ), b),
- Command::Deconstruct(p) => Command::Deconstruct(Point::new(
- FULL_MAP_WIDTH - p.x - 1,
- p.y
- )),
- }
-
+ read_player_command(filename)
}