generate valid and unique board

This commit is contained in:
2023-09-14 01:41:39 +02:00
parent 078c72c400
commit e71ba6dfce
3 changed files with 144 additions and 12 deletions
+2
View File
@@ -11,6 +11,7 @@ typedef struct Vec2 {
typedef struct Cudoku {
int board[9][9];
int solution[9][9];
bool has_won;
Vec2 selection;
bool should_draw_selection;
@@ -29,3 +30,4 @@ void do_selection(Cudoku *game, int x, int y, int width, int height, float x_sca
void set_selected_number(Cudoku *game, int number);
void move_selection(Cudoku *game, int x, int y);
void toggle_selection(Cudoku *game);
void generate_random_board(Cudoku *game);