Browse Source

refactoring: 2

remotes/origin/Lucas
Lucas Heil 11 months ago
parent
commit
cef6f153b9
  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