Browse Source

Commit 23 code

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
d8f815a58d
  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 generateSudoku(int grid[SIZE][SIZE], int difficulty, int level);
void turnFunction(int grid[SIZE][SIZE]); void turnFunction(int grid[SIZE][SIZE]);
void tipFunction(int grid[SIZE][SIZE]); void tipFunction(int grid[SIZE][SIZE]);
void inputFunction(int grid[SIZE][SIZE]);
int availableLevels[3][3][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]) { void turnFunction(int grid[SIZE][SIZE]) {
printf("\nTurn function - Choose an action:\n"); printf("\nTurn function - Choose an action:\n");
printf("1. Tip function\n"); printf("1. Tip function\n");
printf("2. Input function\n");
int action; int action;
@ -336,7 +338,7 @@ void turnFunction(int grid[SIZE][SIZE]) {
tipFunction(grid); tipFunction(grid);
break; break;
case 2: case 2:
printf("Case 2.\n");
inputFunction(grid);
break; break;
case 3: case 3:
printf("Case 3.\n"); printf("Case 3.\n");
@ -444,8 +446,12 @@ void tipFunction(int grid[SIZE][SIZE]) {
} }
} }
void inputFunction(int grid[SIZE][SIZE]) {
printf("\nInput function - Choose an action:\n");
}
int main(){ int main(){

Loading…
Cancel
Save