|
@ -1,5 +1,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <stdio.h> |
|
|
#include <stdio.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdlib.h> |
|
|
#include <stdbool.h> |
|
|
#include <stdbool.h> |
|
@ -198,6 +202,12 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { |
|
|
grid[i][j] = availableLevels[difficulty - 1][level - 1][i][j]; |
|
|
grid[i][j] = availableLevels[difficulty - 1][level - 1][i][j]; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
for (int i = 0; i < SIZE; i++) { |
|
|
|
|
|
for (int j = 0; j < SIZE; j++) { |
|
|
|
|
|
printf("%d", grid[i][j]); |
|
|
|
|
|
} |
|
|
|
|
|
printf("\n"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|