Skip to content

Commit 208225d

Browse files
committed
Add condition to init of matches_to_keep
1 parent 34b9f9a commit 208225d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

axelrod/tournament.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ def _play_matches(self, matches):
279279
Containing the payoff and cooperation matrices
280280
"""
281281
interactions = {}
282-
matches_to_keep = []
282+
if self._keep_matches:
283+
matches_to_keep = []
283284

284285
for key, match in matches.items():
285286
interactions[key] = match.play()

0 commit comments

Comments
 (0)