|
@ -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,7 +446,11 @@ void tipFunction(int grid[SIZE][SIZE]) { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void inputFunction(int grid[SIZE][SIZE]) { |
|
|
|
|
|
printf("\nInput function - Choose an action:\n"); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|