diff options
Diffstat (limited to 'display.c')
-rw-r--r-- | display.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -7,10 +7,13 @@ void display(struct cell board[9][9]) int x; int y; int val; + printf(" A B C D E F G H I\n" + " ---------------------\n"); for (y = 0; y < 9; y++) { if (y % 3 == 0 && y != 0) - printf("------+------+------\n"); + printf(" |-------+------+------\n"); + printf("%d | ", y + 1); for (x = 0; x < 9; x++) { if (x % 3 == 0 && x != 0) |