Skip to content

Commit bb00034

Browse files
committed
add Momentum strategy
1 parent a6733f4 commit bb00034

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

axelrod/strategies/_strategies.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
from .memorytwo import AON2, MEM2, DelayedAON1
194194
from .memorytwo import MemoryTwoPlayer # pylint: disable=unused-import
195195

196+
from .momentum import Momentum
196197
from .mutual import Desperate, Hopeless, Willing
197198
from .negation import Negation
198199
from .oncebitten import FoolMeOnce, ForgetfulFoolMeOnce, OnceBitten
@@ -402,6 +403,7 @@
402403
MEM2,
403404
MathConstantHunter,
404405
Michaelos,
406+
Momentum,
405407
NTitsForMTats,
406408
NaiveProber,
407409
Negation,

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Count the number of available players::
5353

5454
>>> import axelrod as axl
5555
>>> len(axl.strategies)
56-
241
56+
242
5757

5858
Create matches between two players::
5959

docs/reference/strategy_index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ Here are the docstrings of all the strategies in the library.
7676
:members:
7777
.. automodule:: axelrod.strategies.memoryone
7878
:members:
79+
.. automodule:: axelrod.strategies.momentum
80+
:members:
7981
.. automodule:: axelrod.strategies.meta
8082
:members:
8183
.. automodule:: axelrod.strategies.mutual

run_mypy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"axelrod/strategies/mathematicalconstants.py",
4242
"axelrod/strategies/memoryone.py",
4343
"axelrod/strategies/memorytwo.py",
44+
"axelrod/strategies/momentum.py",
4445
"axelrod/strategies/mutual.py",
4546
"axelrod/strategies/negation.py",
4647
"axelrod/strategies/oncebitten.py",

0 commit comments

Comments
 (0)