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");