Browse Source

Commit 22 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
92d7f78edd
  1. 7
      src/main/c/sudoku.c

7
src/main/c/sudoku.c

@ -432,7 +432,12 @@ void tipFunction(int grid[SIZE][SIZE]) {
break; break;
case 3: case 3:
printf("Case 3\n");
for (int i = 0; i < SIZE; i++) {
for (int j = 0; j < SIZE; j++) {
grid[i][j] = solutionLevels[difficulty - 1][selected_level - 1][i][j];
}
}
printf("Puzzle solved. \n");
break; break;
default: default:
printf("Invalid option. Please enter a number between 1 and 3.\n"); printf("Invalid option. Please enter a number between 1 and 3.\n");

Loading…
Cancel
Save