summaryrefslogtreecommitdiff
path: root/src/game_loop.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game_loop.c')
-rw-r--r--src/game_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/game_loop.c b/src/game_loop.c
index f52bdb7..2c70ce2 100644
--- a/src/game_loop.c
+++ b/src/game_loop.c
@@ -76,7 +76,8 @@ static struct move current_player_move(enum player_color current_player,
}
enum player_color game_loop(char *player_one_strategy_path,
- char *player_two_strategy_path) {
+ char *player_two_strategy_path, int *white_score,
+ int *black_score) {
initialize_board();
if (player_one_strategy_path == NULL || player_two_strategy_path == NULL) {
@@ -100,5 +101,5 @@ enum player_color game_loop(char *player_one_strategy_path,
rl_clear_history();
}
- return get_winner(get_board(), current_player, NULL, NULL);
+ return get_winner(get_board(), current_player, white_score, black_score);
}