Skip to content

Commit 2d3aeef

Browse files
author
margaret
committed
Add CyclerCCCDCD class
The class implements per_cccdcd strategy from PRISON project.
1 parent ab15af1 commit 2d3aeef

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

axelrod/strategies/cycler.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,3 +130,14 @@ class CyclerCCCCCD(Cycler):
130130
@init_args
131131
def __init__(self, cycle="CCCCCD"):
132132
Cycler.__init__(self, cycle=cycle)
133+
134+
135+
class CyclerCCCDCD(Cycler):
136+
137+
name = 'Cycler CCCDCD'
138+
classifier = copy.copy(Cycler.classifier)
139+
classifier['memory_depth'] = 5
140+
141+
@init_args
142+
def __init__(self, cycle="CCCDCD"):
143+
Cycler.__init__(self, cycle=cycle)

0 commit comments

Comments
 (0)