Skip to content

Commit e62d509

Browse files
committed
Fix cycler tests (again)
1 parent 98fff65 commit e62d509

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

axelrod/strategies/cycler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def __init__(self, cycle="CCD"):
5353
Player.__init__(self)
5454
self.cycle = cycle
5555
self.name += " " + cycle
56-
self.classifier['memory_depth'] = len(cycle)
56+
self.classifier['memory_depth'] = len(cycle) - 1
5757

5858
def strategy(self, opponent):
5959
curent_round = len(self.history)

axelrod/tests/unit/test_cycler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class TestCycler(TestPlayer):
3232
name = "Cycler %s" % cycle
3333
player = getattr(axelrod, 'Cycler%s' % cycle)
3434
expected_classifier = {
35-
'memory_depth': len(cycle),
35+
'memory_depth': len(cycle) - 1,
3636
'stochastic': False,
3737
'inspects_source': False,
3838
'manipulates_source': False,

0 commit comments

Comments
 (0)