Browse Source

Commit 4 code

main^2
Lucas Heil 11 months ago
committed by Peter Wiebe
parent
commit
0736456434
  1. 19
      src/main/c/sudoku.c

19
src/main/c/sudoku.c

@ -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;
Loading…
Cancel
Save