We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98fff65 commit e62d509Copy full SHA for e62d509
axelrod/strategies/cycler.py
@@ -53,7 +53,7 @@ def __init__(self, cycle="CCD"):
53
Player.__init__(self)
54
self.cycle = cycle
55
self.name += " " + cycle
56
- self.classifier['memory_depth'] = len(cycle)
+ self.classifier['memory_depth'] = len(cycle) - 1
57
58
def strategy(self, opponent):
59
curent_round = len(self.history)
axelrod/tests/unit/test_cycler.py
@@ -32,7 +32,7 @@ class TestCycler(TestPlayer):
32
name = "Cycler %s" % cycle
33
player = getattr(axelrod, 'Cycler%s' % cycle)
34
expected_classifier = {
35
- 'memory_depth': len(cycle),
+ 'memory_depth': len(cycle) - 1,
36
'stochastic': False,
37
'inspects_source': False,
38
'manipulates_source': False,
0 commit comments