improve board printing to be more clear
This commit is contained in:
@@ -43,6 +43,7 @@ void sudoku_solve_step(u16 *board) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void sudoku_print(const u16 *board) {
|
void sudoku_print(const u16 *board) {
|
||||||
|
printf("+———-———-———-———-———-———-———-———-———+\n");
|
||||||
for (uint i = 0; i < SUDOKU_DEPTH_2; i++) {
|
for (uint i = 0; i < SUDOKU_DEPTH_2; i++) {
|
||||||
char tile;
|
char tile;
|
||||||
switch (board[i]) {
|
switch (board[i]) {
|
||||||
@@ -61,4 +62,5 @@ void sudoku_print(const u16 *board) {
|
|||||||
printf("| %c ", tile);
|
printf("| %c ", tile);
|
||||||
if (i % 9 == 8) printf("|\n");
|
if (i % 9 == 8) printf("|\n");
|
||||||
}
|
}
|
||||||
|
printf("+———-———-———-———-———-———-———-———-———+\n");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user