Browse Source

Commit 9 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
1742cbf7f1
  1. 10
      src/main/c/sudoku.c

10
src/main/c/sudoku.c

@ -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");
}
} }

Loading…
Cancel
Save