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