Implement basic generation and printing

I expect this will probably generate some impossible puzzles, but I'll
deal with that later.
This commit is contained in:
2022-11-21 13:01:39 +00:00
parent abc98edac9
commit 512580ab27
4 changed files with 204 additions and 1 deletions

14
main.c
View File

@@ -16,7 +16,21 @@
* <https://www.gnu.org/licenses/>.
*/
#include "sud.h"
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
int main(void)
{
unsigned seed = time(NULL);
printf("Seed: %u\n\n", seed);
srand(seed);
struct sudoku sud;
gen(&sud);
print(&sud);
return 0;
}