Skip to content

Commit b3eb0ea

Browse files
author
margaret
committed
Incorporate comment - simplify if statement
1 parent 988b849 commit b3eb0ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/strategies/prober.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def __init__(self):
137137
self.turned_defector = False
138138

139139
def strategy(self, opponent):
140-
if len(self.history) == 0:
140+
if not self.history:
141141
return self.init_sequence[0]
142142
turn = len(self.history)
143143
if turn < len(self.init_sequence):

0 commit comments

Comments
 (0)