diff options
Diffstat (limited to 'src/game_loop.c')
-rw-r--r-- | src/game_loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game_loop.c b/src/game_loop.c index 67c9ea0..8186623 100644 --- a/src/game_loop.c +++ b/src/game_loop.c @@ -67,9 +67,9 @@ enum player_color game_loop(char *player_one_strategy_path, current_player = WHITE; #define other_player (current_player == WHITE ? BLACK : WHITE) - while (has_valid_moves(current_player)) { - struct move move = current_player_move(current_player, player_one_strategy_path, - player_two_strategy_path); + while (has_valid_moves(get_board(), current_player)) { + struct move move = current_player_move( + current_player, player_one_strategy_path, player_two_strategy_path); if (apply_move(get_board(), current_player, move)) { current_player = other_player; } |