improve board printing to be more clear

This commit is contained in:
2025-07-29 12:44:11 +02:00
parent c965f65422
commit 9c10b8efbf

View File

@@ -43,6 +43,7 @@ void sudoku_solve_step(u16 *board) {
}
void sudoku_print(const u16 *board) {
printf("+———-———-———-———-———-———-———-———-———+\n");
for (uint i = 0; i < SUDOKU_DEPTH_2; i++) {
char tile;
switch (board[i]) {
@@ -58,7 +59,8 @@ void sudoku_print(const u16 *board) {
default: tile = ' '; break;
};
printf("|%c ", tile);
printf("| %c ", tile);
if (i % 9 == 8) printf("|\n");
}
printf("+———-———-———-———-———-———-———-———-———+\n");
}