From b74a45d66405d59ea3f2891a10ee2c62f12134d9 Mon Sep 17 00:00:00 2001 From: Robby Zambito Date: Wed, 29 Dec 2021 22:53:53 -0500 Subject: Do not pass the board or the current player These functions will use the standard get_board and a function for getting the current player. --- include/othello.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/include/othello.h b/include/othello.h index acf09a0..ec1449a 100644 --- a/include/othello.h +++ b/include/othello.h @@ -34,10 +34,8 @@ struct move { }; // Function pointers for each players move function -extern struct move (*player_one_get_move)(enum player_color board[8][8], - enum player_color current_player); -extern struct move (*player_two_get_move)(enum player_color board[8][8], - enum player_color current_player); +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); -- cgit v1.2.3