Skip to content

Commit d0389ae

Browse files
committed
Classify all strategies as stochastic.
This isn't necessarily correct but it does ensure that the cache will not be used in an axelrod.Match.
1 parent 3db80dc commit d0389ae

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/axelrod_fortran/player.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212

1313
class Player(axl.Player):
1414

15+
classifier = {"stochastic": True}
16+
1517
def __init__(self, original_name, game=Game()):
1618
"""
1719
Parameters

tests/test_player.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
def test_init():
1313
for strategy in all_strategies:
1414
player = Player(strategy)
15+
assert player.classifier["stochastic"]
1516
assert player.original_name == strategy
1617
assert player.original_function.argtypes == (
1718
POINTER(c_int), POINTER(c_int), POINTER(c_int), POINTER(c_int),

0 commit comments

Comments
 (0)