|
|
@ -22,7 +22,7 @@ void Game_loop(); //is instead of main |
|
|
|
void Level_Pool(int difficulty); |
|
|
|
void selectLevel(int grid[SIZE][SIZE]); |
|
|
|
void initializeGrid(int grid[SIZE][SIZE]); |
|
|
|
void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level); |
|
|
|
void create_playing_field(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]); |
|
|
@ -280,7 +280,7 @@ void selectLevel(int grid[SIZE][SIZE]) { |
|
|
|
|
|
|
|
level--; // Adjust to 0-based index |
|
|
|
|
|
|
|
generateSudoku(grid, difficulty, selected_level); |
|
|
|
create_playing_field(grid, difficulty, selected_level); |
|
|
|
break; |
|
|
|
} else { |
|
|
|
printf("Invalid input. Please enter a number between 1 and 3.\n"); |
|
|
@ -299,7 +299,7 @@ void initializeGrid(int grid[SIZE][SIZE]) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
void generateSudoku(int grid[SIZE][SIZE], int difficulty, int level) { |
|
|
|
void create_playing_field(int grid[SIZE][SIZE], int difficulty, int level) { |
|
|
|
initializeGrid(grid); |
|
|
|
for (int i = 0; i < SIZE; i++) { |
|
|
|
for (int j = 0; j < SIZE; j++) { |
|
|
|