Make generator always produce possible puzzles
This commit is contained in:
3
sud.h
3
sud.h
@@ -21,7 +21,6 @@
|
||||
|
||||
#include <stdbool.h>
|
||||
|
||||
#define SIDELEN 9
|
||||
#define SEGLEN 3
|
||||
#define NDIGITS 9
|
||||
|
||||
@@ -34,7 +33,7 @@ struct cellstate {
|
||||
};
|
||||
|
||||
struct sudoku {
|
||||
struct cellstate cells[SIDELEN][SIDELEN];
|
||||
struct cellstate cells[NDIGITS][NDIGITS];
|
||||
};
|
||||
|
||||
enum update_res { NOT_ALLOWED, ALREADY_DET, OK };
|
||||
|
||||
Reference in New Issue
Block a user