Skip to content

Commit 70bffa6

Browse files
committed
Add count of strategies as a doctest.
1 parent 9c84f19 commit 70bffa6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ validity and reproducibility of results!
4949
Quick start
5050
-----------
5151

52+
Count the number of available players::
53+
54+
>>> import axelrod as axl
55+
>>> len(axl.strategies)
56+
236
57+
5258
Create matches between two players::
5359

5460
>>> import axelrod as axl

docs/tutorials/contributing/strategy/adding_the_new_strategy.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ above with your new strategy.
2424

2525
Once you have done that, you need to add the class itself to the
2626
:code:`all_strategies` list (in :code:`axelrod/strategies/_strategies.py`).
27+
You will also need to increment the doctest in
28+
:code:`axelrod/docs/index.rst`.
2729

2830
Finally, if you have created a new module (a new :code:`<strategy.py>` file)
2931
please add it to the :code:`docs/references/all_strategies.rst` file so that it

0 commit comments

Comments
 (0)