From af8d42a3bf181185a09fb97f641a7d0ecb9db4e0 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:18:48 +0100 Subject: [PATCH] Commit 23 code --- src/main/c/sudoku.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index 65e0e50..77122dc 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -25,6 +25,7 @@ void initializeGrid(int grid[SIZE][SIZE]); void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level); void turnFunction(int grid[SIZE][SIZE]); void tipFunction(int grid[SIZE][SIZE]); +void inputFunction(int grid[SIZE][SIZE]); int availableLevels[3][3][SIZE][SIZE] = { @@ -315,6 +316,7 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { void turnFunction(int grid[SIZE][SIZE]) { printf("\nTurn function - Choose an action:\n"); printf("1. Tip function\n"); + printf("2. Input function\n"); int action; @@ -336,7 +338,7 @@ void turnFunction(int grid[SIZE][SIZE]) { tipFunction(grid); break; case 2: - printf("Case 2.\n"); + inputFunction(grid); break; case 3: printf("Case 3.\n"); @@ -444,7 +446,11 @@ void tipFunction(int grid[SIZE][SIZE]) { } } +void inputFunction(int grid[SIZE][SIZE]) { + printf("\nInput function - Choose an action:\n"); + +}