From 0736456434b43e65ec137723a1e45e98b04787af Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:10:18 +0100 Subject: [PATCH] Commit 4 code --- src/main/c/sudoku.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 4ea2db4..dac8629 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -17,7 +17,7 @@ int selected_level; void startSudoku(); //is instead of main void availableLevelsFunction(int difficulty); - +void selectLevel(int grid[SIZE][SIZE]); void startSudoku() { int grid[SIZE][SIZE]; @@ -39,6 +39,7 @@ void startSudoku() { if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') { availableLevelsFunction(difficulty); + selectLevel(grid); } else { printf("Invalid input. Please enter a number between 1 and 3.\n"); } @@ -53,6 +54,22 @@ void availableLevelsFunction(int difficulty) { } } + + +void selectLevel(int grid[SIZE][SIZE]) { + int level = 0; + printf("\nSelect a level:\n"); + + + +} + + + + + + + int main(){ startSudoku(); return 0;