diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2019-08-14 21:56:03 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2019-08-14 21:56:03 +0200 |
commit | f4c27b7a834538bc75dd6f986c05635e6c58956c (patch) | |
tree | 5987b36459062d988e88c17bab29adb96a39a8b8 /src/command.rs | |
parent | 9b98ee64ef54cc434864b77bc20976c1cc166030 (diff) |
Optimized finding valid snowball + bomb moves
Diffstat (limited to 'src/command.rs')
-rw-r--r-- | src/command.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/command.rs b/src/command.rs index 4428b4d..c6d6695 100644 --- a/src/command.rs +++ b/src/command.rs @@ -32,11 +32,11 @@ impl Command { #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] pub enum Action { - Move(Point2d<i8>), - Dig(Point2d<i8>), + Move(Point2d), + Dig(Point2d), Shoot(Direction), - Bomb(Point2d<i8>), - Snowball(Point2d<i8>), + Bomb(Point2d), + Snowball(Point2d), DoNothing, } |