summaryrefslogtreecommitdiff
path: root/src/coordinate.rs
blob: d99cd1669f5a0ea6118c2a180ae88e3ff6094b1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
}