summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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