Skip to content

Commit b43c060

Browse files
authored
Merge pull request #8 from Axelrod-Python/reclassify
Classify all strategies as stochastic.
2 parents 3db80dc + d0389ae commit b43c060

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)