Skip to content

Commit 835764a

Browse files
authored
Changed to tuple of explicit length.
1 parent dacc9c8 commit 835764a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

axelrod/strategies/axelrod_second.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1505,4 +1505,6 @@ def strategy(self, opponent: Player) -> Action:
15051505
if len(opponent.history) >= go_back:
15061506
recent_history[-go_back] = opponent.history[-go_back]
15071507

1508-
return random_choice(self.prob_coop[tuple(recent_history)])
1508+
return random_choice(self.prob_coop[(recent_history[-3],
1509+
recent_history[-2],
1510+
recent_history[-1])])

0 commit comments

Comments
 (0)