summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRaúl Benencia <rul@kalgan.cc>2015-03-28 17:12:39 -0300
committerRaúl Benencia <rul@kalgan.cc>2015-03-28 17:12:39 -0300
commit739262092f1287f254c9379fec0cad97dad65b6a (patch)
tree02eb26e91b4e5d521480f9d26903a882af805f64 /lib
parente42268acc5fd600e18073d745e99e7491ccdafc4 (diff)
use coord getters
Diffstat (limited to 'lib')
-rw-r--r--lib/print.c6
1 files changed, 3 insertions, 3 deletions
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);
}
}
}
nihil fit ex nihilo