Skip to content

Commit bb03e1f

Browse files
souravsinghdrvinceknight
authored andcommitted
Fix Strategy
1 parent f6e15a7 commit bb03e1f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

axelrod/strategies/titfortat.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,8 @@ class EugineNier(Player):
692692
def strategy(self, opponent: Player) -> Action:
693693
if not self.history:
694694
return C
695+
if opponent.history[-5] == [D, D, D, D, D]:
696+
return D
695697
if opponent.history[-1] == D:
696698
return D
697699
return C
698-
699-
if opponent.history[-5] == [D, D, D, D, D]:
700-
return D

0 commit comments

Comments
 (0)