diff options
Diffstat (limited to 'include/othello.h')
-rw-r--r-- | include/othello.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/othello.h b/include/othello.h index de4f846..14c402b 100644 --- a/include/othello.h +++ b/include/othello.h @@ -41,9 +41,15 @@ extern struct move (*player_two_get_move)(void); // Set a board to a new game state. void initialize_board(void); +// Copy the specified board. It must be freed by the caller. +enum player_color **copy_board(enum player_color **board); + +// Free the specified board. +enum player_color **free_board(enum player_color **board); + // Plays a game to completion, starting with board. -enum player_color game_loop(FILE *player_one_strategy, - FILE *player_two_strategy); +enum player_color game_loop(char *player_one_strategy, + char *player_two_strategy); // Prints the current state of the board, including coordinates in the margins. void print_board(void); |