Browse Source

Commit 21 code

main^2
Lucas Heil 11 months ago
committed by Peter Wiebe
parent
commit
9d996e6193
  1. 7
      src/main/c/sudoku.c

7
src/main/c/sudoku.c

@ -422,6 +422,13 @@ void tipFunction(int grid[SIZE][SIZE]) {
printf("Invalid input. Please enter a number between 1 and 9.\n");
}
}
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
grid[startRow - 1 + i][startCol - 1 + j] =
solutionLevels[difficulty - 1][selected_level - 1][startRow - 1 + i][startCol - 1 + j];
}
}
printf("3x3 field set successfully.\n");
break;
case 3:

Loading…
Cancel
Save