Browse Source

Commit 23 code

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

8
src/main/c/sudoku.c

@ -25,6 +25,7 @@ void initializeGrid(int grid[SIZE][SIZE]);
void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level);
void turnFunction(int grid[SIZE][SIZE]);
void tipFunction(int grid[SIZE][SIZE]);
void inputFunction(int grid[SIZE][SIZE]);
int availableLevels[3][3][SIZE][SIZE] = {
@ -315,6 +316,7 @@ void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) {
void turnFunction(int grid[SIZE][SIZE]) {
printf("\nTurn function - Choose an action:\n");
printf("1. Tip function\n");
printf("2. Input function\n");
int action;
@ -336,7 +338,7 @@ void turnFunction(int grid[SIZE][SIZE]) {
tipFunction(grid);
break;
case 2:
printf("Case 2.\n");
inputFunction(grid);
break;
case 3:
printf("Case 3.\n");
@ -444,7 +446,11 @@ void tipFunction(int grid[SIZE][SIZE]) {
}
}
void inputFunction(int grid[SIZE][SIZE]) {
printf("\nInput function - Choose an action:\n");
}

Loading…
Cancel
Save