diff options
Diffstat (limited to 'lib/coordinate.c')
-rw-r--r-- | lib/coordinate.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/coordinate.c b/lib/coordinate.c index 7518a78..f92c22a 100644 --- a/lib/coordinate.c +++ b/lib/coordinate.c @@ -72,6 +72,20 @@ Coord coord_set_col(Coord c, char col) { } /* + * Get Coord row + */ +char coord_get_row(Coord c) { + return c.row; +} + +/* + * Get Coord column + */ +char coord_get_col(Coord c) { + return c.col; +} + +/* * Returns the next coordinate. Useful for traversing the board forwards. */ Coord coord_next(Coord c) { |