Skip to content

Commit

Permalink
Alter inequality condition to match docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
meatballs authored and marcharper committed Aug 4, 2017
1 parent 8ef3b84 commit abcc6e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axelrod/strategies/axelrod_second.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def strategy(self, opponent: Player) -> Action:
defection_prop = opponent.defections / len(opponent.history)
if opponent.history[-1] == D:
r = random.random()
if defection_prop > max(0.4, r):
if defection_prop >= max(0.4, r):
return D
return C

Expand Down

0 comments on commit abcc6e7

Please sign in to comment.