Browse Source

Commit 30 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
ed81534dea
  1. 3
      src/main/c/sudoku.c

3
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]) { void turnFunction(int grid[SIZE][SIZE]) {
while (1) {
printf("\nTurn function - Choose an action:\n"); printf("\nTurn function - Choose an action:\n");
printf("1. Tip function\n"); printf("1. Tip function\n");
printf("2. Input function\n"); printf("2. Input function\n");
@ -357,9 +358,11 @@ void turnFunction(int grid[SIZE][SIZE]) {
default: default:
printf("Invalid input. Please enter a number between 1 and 6.\n"); printf("Invalid input. Please enter a number between 1 and 6.\n");
} }
}
} }
void tipFunction(int grid[SIZE][SIZE]) { void tipFunction(int grid[SIZE][SIZE]) {
printf("\nTip function - Choose an option:\n"); printf("\nTip function - Choose an option:\n");
printf("1. Set the user-specified cell to the right value\n"); printf("1. Set the user-specified cell to the right value\n");

Loading…
Cancel
Save