Browse Source

Commit 4 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
56f81ee41a
  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 startSudoku(); //is instead of main
void availableLevelsFunction(int difficulty); void availableLevelsFunction(int difficulty);
void selectLevel(int grid[SIZE][SIZE]);
void startSudoku() { void startSudoku() {
int grid[SIZE][SIZE]; int grid[SIZE][SIZE];
@ -39,6 +39,7 @@ void startSudoku() {
if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') { if ((difficulty >= 1 && difficulty <= 3) && input[1] == '\0') {
availableLevelsFunction(difficulty); availableLevelsFunction(difficulty);
selectLevel(grid);
} else { } else {
printf("Invalid input. Please enter a number between 1 and 3.\n"); 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(){ int main(){
startSudoku(); startSudoku();
return 0; return 0;
Loading…
Cancel
Save