summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Zambito <contact@robbyzambito.me>2021-12-29 22:53:53 -0500
committerRobby Zambito <contact@robbyzambito.me>2021-12-29 22:53:53 -0500
commitb74a45d66405d59ea3f2891a10ee2c62f12134d9 (patch)
tree05865c2dfd88f15f09abd2f8237bccad07794726
parente66c54235e2d38ebc912aca0a74d287374914517 (diff)
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.
-rw-r--r--include/othello.h6
1 files 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);