Set up solve state

This commit is contained in:
Camden Dixie O'Brien
2025-03-06 20:53:13 +00:00
parent 302314ee79
commit cf84ae2017
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');
}