From fb2c5ef09dc48975569b05027698244ab5a82856 Mon Sep 17 00:00:00 2001 From: Lucas Heil Date: Wed, 7 Feb 2024 17:21:22 +0100 Subject: [PATCH] Commit 30 code --- src/main/c/sudoku.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/c/sudoku.c b/src/main/c/sudoku.c index ddff311..cc5739c 100644 --- a/src/main/c/sudoku.c +++ b/src/main/c/sudoku.c @@ -315,6 +315,7 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { } void turnFunction(int grid[SIZE][SIZE]) { + while (1) { printf("\nTurn function - Choose an action:\n"); printf("1. Tip function\n"); printf("2. Input function\n"); @@ -357,9 +358,11 @@ void turnFunction(int grid[SIZE][SIZE]) { default: printf("Invalid input. Please enter a number between 1 and 6.\n"); } + } } + void tipFunction(int grid[SIZE][SIZE]) { printf("\nTip function - Choose an option:\n"); printf("1. Set the user-specified cell to the right value\n");