From 29020b56ac8377b88f2065874bebfaced75e312e Mon Sep 17 00:00:00 2001
From: David Li
Date: Thu, 10 Dec 2015 17:29:50 -0500
Subject: Initial commit
---
src/coordinate.rs | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 src/coordinate.rs
(limited to 'src/coordinate.rs')
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
+}
--
cgit v1.2.3