Implement puzzle generation

This commit is contained in:
Camden Dixie O'Brien
2025-03-06 20:23:07 +00:00
parent 540a47c37b
commit 0561639aa6
3 changed files with 97 additions and 0 deletions

25
main.c Normal file
View File

@@ -0,0 +1,25 @@
/*
* Copyright (c) Camden Dixie O'Brien
* SPDX-License-Identifier: AGPL-3.0-only
*/
#include "puzz.h"
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
int main(void)
{
struct timeval tv;
if (gettimeofday(&tv, NULL) != 0) {
perror("Failed to get time");
exit(1);
}
srand(tv.tv_usec);
gen();
print();
return 0;
}