Set up solve state

This commit is contained in:
2025-03-22 13:33:38 +00:00
parent 67afbc1353
commit b2d9dcb6fe
2 changed files with 28 additions and 0 deletions

2
puzz.c
View File

@@ -42,9 +42,11 @@ void gen(void)
void print(void)
{
puts("Solution:");
for (int y = 0; y < HEIGHT; ++y) {
for (int x = 0; x < WIDTH; ++x)
putchar(soln[x][y] == MINE ? 'x' : '0' + soln[x][y]);
putchar('\n');
}
putchar('\n');
}