From 50c89e2a4485d8b574a5cb7132385af3ea28a8d9 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:18:15 +0100 Subject: [PATCH] Commit 21 code --- src/main/c/sudoku.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 23ee743..9b6b0f5 100644 --- a/src/main/c/sudoku.c +++ b/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: