From e42268acc5fd600e18073d745e99e7491ccdafc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 28 Mar 2015 17:11:05 -0300 Subject: implement coordinate setters and getters --- lib/coordinate.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lib') diff --git a/lib/coordinate.c b/lib/coordinate.c index 7518a78..f92c22a 100644 --- a/lib/coordinate.c +++ b/lib/coordinate.c @@ -71,6 +71,20 @@ Coord coord_set_col(Coord c, char col) { return c; } +/* + * 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. */ -- cgit v1.2.3