Skip to content

Commit

Permalink
More review updates
Browse files Browse the repository at this point in the history
  • Loading branch information
marcharper committed Apr 13, 2016
1 parent d0c88cb commit 697be81
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions axelrod/match.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
def is_stochastic(players, noise):
"""Determines if a match is stochastic -- true if there is noise or if any
of the players involved is stochastic."""
return (
self._noise or
any(p.classifier['stochastic'] for p in self.players)
)
return (noise or any(p.classifier['stochastic'] for p in players))

class Match(object):

Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/getting_started/moran.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ the library, proceed as follows::
... axl.TitForTat(), axl.Grudger()]
>>> mp = axl.MoranProcess(players)
>>> mp.play()
>>> mp.winner # doctest: +SKIP
>>> mp.winning_strategy_name # doctest: +SKIP

Defector

Expand All @@ -48,8 +48,8 @@ The sequence of populations::

The scores in each round::

>>> import pprint
>>> pprint.pprint(mp.score_history) # doctest: +SKIP
>>> for row in mp.score_history: # doctest: +SKIP
... print([round(element, 1) for element in row])
[[6.0, 7.0800000000000001, 6.9900000000000002, 6.9900000000000002],
[6.0, 7.0800000000000001, 6.9900000000000002, 6.9900000000000002],
[3.0, 7.04, 7.04, 4.9800000000000004],
Expand Down

0 comments on commit 697be81

Please sign in to comment.