Skip to content

Commit 45368a7

Browse files
committed
Adding WorseAndWorse stratergy
1 parent d9b6147 commit 45368a7

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

axelrod/strategies/_strategies.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
TitForTat, TitFor2Tats, TwoTitsForTat, Bully, SneakyTitForTat,
6060
SuspiciousTitForTat, AntiTitForTat, HardTitForTat, HardTitFor2Tats,
6161
OmegaTFT, Gradual, ContriteTitForTat, SlowTitForTwoTats, AdaptiveTitForTat)
62-
62+
from .worse_and_worse import WorseAndWorse
6363

6464
# Note: Meta* strategies are handled in .__init__.py
6565

@@ -195,12 +195,13 @@
195195
Willing,
196196
WinShiftLoseStay,
197197
WinStayLoseShift,
198+
WorseAndWorse,
198199
ZDExtort2,
199200
ZDExtort2v2,
200201
ZDExtort4,
201202
ZDGTFT2,
202203
ZDGen2,
203204
ZDSet2,
204205
e,
205-
206+
206207
]

docs/reference/all_strategies.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ Here are the docstrings of all the strategies in the library.
6060
.. automodule:: axelrod.strategies.gobymajority
6161
:members:
6262
:undoc-members:
63+
.. automodule:: axelrod.strategies.gradualkiller
64+
:members:
65+
:undoc-members:
6366
.. automodule:: axelrod.strategies.grudger
6467
:members:
6568
:undoc-members:
@@ -120,6 +123,6 @@ Here are the docstrings of all the strategies in the library.
120123
.. automodule:: axelrod.strategies.titfortat
121124
:members:
122125
:undoc-members:
123-
.. automodule:: axelrod.strategies.gradualkiller
126+
.. automodule:: axelrod.strategies.worse_and_worse
124127
:members:
125-
:undoc-members:
128+
:undoc-members:

docs/tutorials/advanced/classification_of_strategies.rst

Lines changed: 2 additions & 2 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-
35
50+
36
5151

5252

5353
Or, to find out how many strategies only use 1 turn worth of memory to
@@ -81,7 +81,7 @@ length of each match of the tournament::
8181
... }
8282
>>> strategies = axl.filtered_strategies(filterset)
8383
>>> len(strategies)
84-
4
84+
5
8585

8686
Note that in the filterset dictionary, the value for the 'makes_use_of' key
8787
must be a list. Here is how we might identify the number of strategies that use

0 commit comments

Comments
 (0)