Browse Source

refactoring: 2

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

6
src/main/c/sudoku.c

@ -18,7 +18,7 @@ int difficulty;
int selected_level; int selected_level;
void startSudoku(); //is instead of main
void Game_loop(); //is instead of main
void Level_Pool(int difficulty); void Level_Pool(int difficulty);
void selectLevel(int grid[SIZE][SIZE]); void selectLevel(int grid[SIZE][SIZE]);
void initializeGrid(int grid[SIZE][SIZE]); void initializeGrid(int grid[SIZE][SIZE]);
@ -227,7 +227,7 @@ int solutionLevels[3][3][SIZE][SIZE] = {
}; };
void startSudoku() {
void Game_loop() {
int grid[SIZE][SIZE]; int grid[SIZE][SIZE];
selected_level = 0; selected_level = 0;
@ -573,6 +573,6 @@ void doneFunction(int grid[SIZE][SIZE]) {
int main(){ int main(){
startSudoku();
Game_loop();
return 0; return 0;
} }
Loading…
Cancel
Save