diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 9b6b0f5..65e0e50 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -432,7 +432,12 @@ void tipFunction(int grid[SIZE][SIZE]) { break; 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; default: printf("Invalid option. Please enter a number between 1 and 3.\n");