Skip to content

Commit

Permalink
two docstring changes
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-s-s committed Jul 2, 2017
1 parent 73f0440 commit 2ecdf8c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions axelrod/strategy_transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def generic_strategy_wrapper(player, opponent, proposed_action, *args,


def flip_wrapper(player, opponent, action):
"""Applies Action.flip() at the class level."""
"""Flips the player's original actions."""
return action.flip()


Expand Down Expand Up @@ -240,7 +240,7 @@ def dual_wrapper(player, opponent, proposed_action):


def noisy_wrapper(player, opponent, action, noise=0.05):
"""Applies Action.flip() at the class level."""
"""Flips the player's actions with probability: `noise`."""
r = random.random()
if r < noise:
return action.flip()
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/further_topics/noisy_tournaments.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Noisy tournaments

A common variation on iterated prisoner’s dilemma tournaments is to add
stochasticity in the choice of actions, simply called noise. This noise is
introduced by flipping plays between ‘C’ and ‘D’ with some probability that is
introduced by flipping plays between C and D with some probability that is
applied to all plays after they are delivered by the player [Bendor1993]_.

The presence of this persistent background noise causes some strategies to
Expand Down

0 comments on commit 2ecdf8c

Please sign in to comment.