Browse Source

Commit 16 code

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

20
src/main/c/sudoku.c

@ -260,6 +260,10 @@ void turnFunction(int grid[SIZE][SIZE]) {
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");
printf("2. Set the user-specified 3x3 field to the right values\n");
printf("3. Solve the entire puzzle for the current level\n");
int option = 0;
@ -276,6 +280,22 @@ void tipFunction(int grid[SIZE][SIZE]) {
printf("Invalid input. Please enter a number between 1 and 3.\n");
}
}
switch (option) {
case 1:
printf("Case 1\n");
break;
case 2:
printf("Case 2\n");
break;
case 3:
printf("Case 3\n");
break;
default:
printf("Invalid option. Please enter a number between 1 and 3.\n");
}
}

Loading…
Cancel
Save