Implement puzzle generation
This commit is contained in:
25
main.c
Normal file
25
main.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user