We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35833ac commit 8c49ea3Copy full SHA for 8c49ea3
axelrod/match.py
@@ -130,7 +130,7 @@ def _cache_update_required(self):
130
A boolean to show whether the deterministic cache should be updated.
131
"""
132
return (
133
- not self.is_stochastic
+ not self._stochastic
134
and not self.noise
135
and self._cache.mutable
136
and not (any(Classifiers["stochastic"](p) for p in self.players))
@@ -195,9 +195,7 @@ def play(self):
195
p.set_seed(self._random.random_seed_int())
196
result = []
197
for _ in range(turns):
198
- plays = self.simultaneous_play(
199
- self.players[0], self.players[1], self.noise
200
- )
+ plays = self.simultaneous_play(self.players[0], self.players[1], self.noise)
201
result.append(plays)
202
203
if self._cache_update_required:
0 commit comments