Skip to content

Commit 206b414

Browse files
souravsinghdrvinceknight
authored andcommitted
Update titfortat.py
1 parent 540b660 commit 206b414

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/strategies/titfortat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ 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]:
695+
if opponent.history[-5:] == [D, D, D, D, D]:
696696
return D
697697
if opponent.history[-1] == D:
698698
return D

0 commit comments

Comments
 (0)