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 --- include/coordinate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include') diff --git a/include/coordinate.h b/include/coordinate.h index bc63122..4c98f3f 100644 --- a/include/coordinate.h +++ b/include/coordinate.h @@ -35,6 +35,16 @@ Coord coord_set_col(Coord c, char col); */ Coord coord_set_row(Coord c, char row); +/* + * Get Coord row + */ +char coord_get_row(Coord c); + +/* + * Get Coord column + */ +char coord_get_col(Coord c); + /* * Returns the next coordinate. Useful for traversing the board forwards. */ -- cgit v1.2.3