From 58324035132009869c406d486605be98725c83f1 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 5 Jan 2022 22:38:24 -0500 Subject: 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. --- include/othello.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 +#include 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); -- cgit v1.2.3