|
|
@ -17,7 +17,7 @@ int selected_level; |
|
|
|
|
|
|
|
void startSudoku(); //is instead of main |
|
|
|
void availableLevelsFunction(int difficulty); |
|
|
|
|
|
|
|
void selectLevel(int grid[SIZE][SIZE]); |
|
|
|
|
|
|
|
void startSudoku() { |
|
|
|
int grid[SIZE][SIZE]; |
|
|
@ -39,6 +39,7 @@ void startSudoku() { |
|
|
|
|
|
|
|
if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') { |
|
|
|
availableLevelsFunction(difficulty); |
|
|
|
selectLevel(grid); |
|
|
|
} else { |
|
|
|
printf("Invalid input. Please enter a number between 1 and 3.\n"); |
|
|
|
} |
|
|
@ -53,6 +54,22 @@ void availableLevelsFunction(int difficulty) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void selectLevel(int grid[SIZE][SIZE]) { |
|
|
|
int level = 0; |
|
|
|
printf("\nSelect a level:\n"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
int main(){ |
|
|
|
startSudoku(); |
|
|
|
return 0; |