Skip to content

Commit ce1d6e6

Browse files
committed
Adjust doctests.
1 parent 659d997 commit ce1d6e6

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

docs/tutorials/advanced/classification_of_strategies.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ strategies::
4747
... }
4848
>>> strategies = axl.filtered_strategies(filterset)
4949
>>> len(strategies)
50-
87
50+
88
5151

5252
Or, to find out how many strategies only use 1 turn worth of memory to
5353
make a decision::
@@ -57,7 +57,7 @@ make a decision::
5757
... }
5858
>>> strategies = axl.filtered_strategies(filterset)
5959
>>> len(strategies)
60-
31
60+
32
6161

6262
Multiple filters can be specified within the filterset dictionary. To specify a
6363
range of memory_depth values, we can use the 'min_memory_depth' and
@@ -69,7 +69,7 @@ range of memory_depth values, we can use the 'min_memory_depth' and
6969
... }
7070
>>> strategies = axl.filtered_strategies(filterset)
7171
>>> len(strategies)
72-
54
72+
55
7373

7474
We can also identify strategies that make use of particular properties of the
7575
tournament. For example, here is the number of strategies that make use of the

docs/tutorials/advanced/player_information.rst

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@ Player information
44
==================
55

66
It is possible to determine what information players know about their matches.
7-
By default all known information is given.
8-
For example let us create a match with 5 turns between :code:`SteinAndRapoport`
9-
and :code:`Alternator`. The latter of these two always defects on the last 2
10-
turns::
7+
By default all known information is given. For example let us create a match
8+
with 5 turns between :code:`FirstBySteinAndRapoport` and :code:`Alternator`. The
9+
latter of these two always defects on the last 2 turns::
1110

1211
>>> import axelrod as axl
13-
>>> players = (axl.Alternator(), axl.SteinAndRapoport())
12+
>>> players = (axl.Alternator(), axl.FirstBySteinAndRapoport())
1413
>>> axl.Match(players, turns=5).play()
1514
[(C, C), (D, C), (C, C), (D, D), (C, D)]
1615

docs/tutorials/contributing/strategy/classifying_the_new_strategy.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ default classifier dictionary from the class. This might sometimes be modified b
2626
the initialisation depending on input parameters. A good example of this is the
2727
:code:`Joss` strategy::
2828

29-
>>> joss = axelrod.Joss()
30-
>>> boring_joss = axelrod.Joss(p=1)
29+
>>> joss = axelrod.FirstByJoss()
30+
>>> boring_joss = axelrod.FirstByJoss(p=1)
3131
>>> joss.classifier['stochastic'], boring_joss.classifier['stochastic']
3232
(True, False)
3333

0 commit comments

Comments
 (0)