From 1742cbf7f16893f7225547b92e5b199b4fa111cb Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:13:43 +0100 Subject: [PATCH] Commit 9 code --- src/main/c/sudoku.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index f877f62..3ee5b72 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -1,5 +1,9 @@ + + + + #include #include #include @@ -198,6 +202,12 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { grid[i][j] = availableLevels[difficulty - 1][level - 1][i][j]; } } + for (int i = 0; i < SIZE; i++) { + for (int j = 0; j < SIZE; j++) { + printf("%d", grid[i][j]); + } + printf("\n"); + } }