Skip to content

Commit

Permalink
Revert "Add condition for is_alternator to return false for junk hist…
Browse files Browse the repository at this point in the history
…ory"

This reverts commit abd4ffa.
  • Loading branch information
meatballs authored and marcharper committed Mar 16, 2017
1 parent c71b43c commit b40d5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion axelrod/strategies/hunter.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def strategy(self, opponent: Player) -> Action:

def is_alternator(history: List[Action]) -> bool:
for i in range(len(history) - 1):
if history[i] == history[i + 1] or history[i] not in (C, D):
if history[i] == history[i + 1]:
return False
return True

Expand Down

0 comments on commit b40d5b9

Please sign in to comment.