summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2022-01-05 22:38:24 -0500
committerRobby Zambito <contact@robbyzambito.me>2022-01-05 22:38:24 -0500
commit58324035132009869c406d486605be98725c83f1 (patch)
tree1ceeca62c7c690caa797440b6a25d72833049bb6 /include
parent6a35a3cffd976f6fa9d96759e2f2bb0f784b92ac (diff)
Open strategy files and pass them to the game loop
Also fixed a bug where we could have gone off the upper bounds of the board.
Diffstat (limited to 'include')
-rw-r--r--include/othello.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/othello.h b/include/othello.h
index 3c3027c..56745bb 100644
--- a/include/othello.h
+++ b/include/othello.h
@@ -21,6 +21,7 @@
#pragma once
#include <stdbool.h>
+#include <stdio.h>
enum player_color {
EMPTY = '*',
@@ -41,7 +42,8 @@ extern struct move (*player_two_get_move)(void);
void initialize_board(void);
// Plays a game to completion, starting with board.
-enum player_color game_loop(void);
+enum player_color game_loop(FILE *player_one_strategy,
+ FILE *player_two_strategy);
// Prints the current state of the board, including coordinates in the margins.
void print_board(void);