From 92d7f78edd282162fb1926839722b1e26a7ea17c Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:18:26 +0100 Subject: [PATCH] Commit 22 code --- src/main/c/sudoku.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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");