Skip to content

Commit

Permalink
Break the tie in look_ahead differently (so current test cases pass)
Browse files Browse the repository at this point in the history
  • Loading branch information
langner committed Aug 18, 2018
1 parent cbc25ee commit f474f2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axelrod/_strategy_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def look_ahead(player_1, player_2, game, rounds=10):
simulate_match(player, opponent_, action, rounds)
results[action] = _calculate_scores(player, opponent_, game)

return C if results[C] >= results[D] else D
return C if results[C] > results[D] else D


@lru_cache()
Expand Down

0 comments on commit f474f2e

Please sign in to comment.