Skip to content

Commit b25d539

Browse files
kjurgielajtismarcharper
authored andcommitted
Changed elif to if
1 parent d26767a commit b25d539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ def strategy(self, opponent: Player) -> Action:
268268

269269
if self.opponent_is_random:
270270
return D
271-
elif all(opponent.history[i] == self.history[i - 1] for i in range(1, len(self.history))):
271+
if all(opponent.history[i] == self.history[i - 1] for i in range(1, len(self.history))):
272272
# Check if opponent plays Tit for Tat
273273
if opponent.history[-1] == D:
274274
return D

0 commit comments

Comments
 (0)