diff options
Diffstat (limited to 'src/coordinate.rs')
-rw-r--r-- | src/coordinate.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/coordinate.rs b/src/coordinate.rs new file mode 100644 index 0000000..d99cd16 --- /dev/null +++ b/src/coordinate.rs @@ -0,0 +1,17 @@ +// "even-q" vertical layout +// not exactly the same as 2112 +#[derive(Clone)] +pub struct Coordinate { + x: i32, + y: i32, +} + +#[derive(Clone)] +pub enum Direction { + N, + S, + NE, + SE, + NW, + SW +} |