diff options
Diffstat (limited to 'include/othello.h')
-rw-r--r-- | include/othello.h | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/othello.h b/include/othello.h index ec1449a..3c3027c 100644 --- a/include/othello.h +++ b/include/othello.h @@ -38,16 +38,7 @@ extern struct move (*player_one_get_move)(void); extern struct move (*player_two_get_move)(void); // Set a board to a new game state. -void initialize_board(enum player_color ***board); - -// True if move is valid for current_player. -// Otherwise false. -bool is_valid_move(const enum player_color current_player, - const struct move move); - -// True if current_player has any valid moves. -// Otherwise false. -bool has_valid_moves(const enum player_color current_player); +void initialize_board(void); // Plays a game to completion, starting with board. enum player_color game_loop(void); @@ -60,3 +51,5 @@ enum player_color get_current_player(void); // Returns the current board. const enum player_color **get_board(void); + +enum player_color get_winner(void); |