Implement puzzle generation

This commit is contained in:
2025-03-22 13:33:38 +00:00
parent bb63cc0a30
commit 0c0ccc2930
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;
}