commit d02b840e2bfabd7475676f9c669a535e7c91f8a5
parent fc7891d99411a291fc671270166c8952165fbea6
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date: Sun, 18 Dec 2022 09:55:56 -0600
Earlier WIP appears to be working
Diffstat:
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tictactoe.h b/tictactoe.h
@@ -15,14 +15,13 @@
#define OPPONENT (player == 'O' ? 'X' : 'O')
-/*typedef void (*board_fn)(char *, char);*/
static char the_desired_board[32];
static _Bool srand_seeded = 0;
static int get_rand(int max_excl) {
if (!srand_seeded) {
time_t seed = time(NULL);
- FILE *f = fopen("seeds", "w");
+ FILE *f = fopen("seed", "w");
if(f) {
fprintf(f, "%d\n", seed);
fclose(f);