Lucas Heil
11 months ago
committed by
Peter Wiebe
2 changed files with 100 additions and 12 deletions
@ -0,0 +1,41 @@ |
|||
#ifndef SUDOKU_H |
|||
#define SUDOKU_H |
|||
|
|||
#include <stdbool.h> |
|||
//constants |
|||
#define SIZE_OF_GAMEBORD_AXIS_X 9 |
|||
#define SIZE_OF_GAMEBORD_AXIS_Y 9 |
|||
#define AVAILABLE_DIFFICULTIES 3 |
|||
#define AVAILABLE_LEVELS 3 |
|||
#define EMPTY 0 |
|||
#define LEVEL_NUMBER 3 |
|||
|
|||
|
|||
extern int selected_difficulty; |
|||
extern int selected_level; |
|||
extern int solutionLevels[AVAILABLE_DIFFICULTIES][AVAILABLE_LEVELS][SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]; |
|||
extern int availableLevels[AVAILABLE_DIFFICULTIES][AVAILABLE_LEVELS][SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]; |
|||
extern bool check_solved; |
|||
extern bool test_help; |
|||
extern int test_row_e; |
|||
extern int test_col_e; |
|||
extern int test_num; |
|||
|
|||
|
|||
|
|||
//functions |
|||
void Game_loop(); //is instead of main |
|||
void Level_Pool(int selected_difficulty); |
|||
void Level_Selection(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void initializeGrid(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void create_playing_field(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y], int selected_difficulty, int level); |
|||
void Player_actions_for_playing(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void giving_hints_to_player(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void write_userinput_into_Sudoku(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void printGrid(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
void check_if_Sudoku_solved(int Sudoku_grid[SIZE_OF_GAMEBORD_AXIS_X][SIZE_OF_GAMEBORD_AXIS_Y]); |
|||
int mainn(); |
|||
|
|||
|
|||
|
|||
#endif // SUDOKU_H |
Write
Preview
Loading…
Cancel
Save
Reference in new issue