|
@ -432,7 +432,12 @@ void tipFunction(int grid[SIZE][SIZE]) { |
|
|
break; |
|
|
break; |
|
|
|
|
|
|
|
|
case 3: |
|
|
case 3: |
|
|
printf("Case 3\n"); |
|
|
|
|
|
|
|
|
for (int i = 0; i < SIZE; i++) { |
|
|
|
|
|
for (int j = 0; j < SIZE; j++) { |
|
|
|
|
|
grid[i][j] = solutionLevels[difficulty - 1][selected_level - 1][i][j]; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
printf("Puzzle solved. \n"); |
|
|
break; |
|
|
break; |
|
|
default: |
|
|
default: |
|
|
printf("Invalid option. Please enter a number between 1 and 3.\n"); |
|
|
printf("Invalid option. Please enter a number between 1 and 3.\n"); |
|
|