Skip to content

Commit

Permalink
Tweak repetitions in match.play.
Browse files Browse the repository at this point in the history
More Pythonic this way.
  • Loading branch information
drvinceknight committed Jun 10, 2017
1 parent 588763c commit 5ae0f9d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions axelrod/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ def play(self):
if self._stochastic or (cache_key not in self._cache):
for p in self.players:
p.reset()
turn = 0
while turn < turns:
turn += 1
for _ in range(turns):
self.players[0].play(self.players[1], self.noise)
result = list(
zip(self.players[0].history, self.players[1].history))
Expand Down

0 comments on commit 5ae0f9d

Please sign in to comment.