From 739262092f1287f254c9379fec0cad97dad65b6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Sat, 28 Mar 2015 17:12:39 -0300 Subject: use coord getters --- lib/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib') diff --git a/lib/print.c b/lib/print.c index 9282581..39b6d8e 100644 --- a/lib/print.c +++ b/lib/print.c @@ -43,7 +43,7 @@ void print_square(Square s) { */ void print_board(Board b, Color side) { Coord c = _next_coord(coord_null(), side); - char current_row = c.row; + char current_row = coord_get_row(c); _print_row_separator(); while (!coord_is_null(c)) { @@ -56,11 +56,11 @@ void print_board(Board b, Color side) { c = _next_coord(c, side); // If the row changed then we must start a new line - if (c.row != current_row) { + if (coord_get_row(c) != current_row) { printf("|\n"); _print_row_separator(); - current_row = c.row; + current_row = coord_get_row(c); } } } -- cgit v1.2.3