@@ -16,7 +16,13 @@ class Davis(Player):
1616 defecting if at any point the opponent has defected."""
1717
1818 name = 'Davis'
19- memory_depth = float ('inf' ) # Long memory
19+ classifier = {
20+ 'memory_depth' : float ('inf' ), # Long memory
21+ 'stochastic' : False ,
22+ 'inspects_source' : False ,
23+ 'manipulates_source' : False ,
24+ 'manipulates_state' : False
25+ }
2026
2127 def __init__ (self , rounds_to_cooperate = 10 ):
2228 Player .__init__ (self )
@@ -39,7 +45,13 @@ class Feld(Player):
3945 """
4046
4147 name = "Feld"
42- memory_depth = 200 # Varies actually, eventually becomes depth 1
48+ classifier = {
49+ 'memory_depth' : 200 , # Varies actually, eventually becomes depth 1
50+ 'stochastic' : False ,
51+ 'inspects_source' : False ,
52+ 'manipulates_source' : False ,
53+ 'manipulates_state' : False
54+ }
4355
4456 def __init__ (self , start_coop_prob = 1.0 , end_coop_prob = 0.5 ,
4557 rounds_of_decay = 200 ):
@@ -78,7 +90,13 @@ class Shubik(Player):
7890 """
7991
8092 name = 'Shubik'
81- memory_depth = float ('inf' )
93+ classifier = {
94+ 'memory_depth' : float ('inf' ),
95+ 'stochastic' : False ,
96+ 'inspects_source' : False ,
97+ 'manipulates_source' : False ,
98+ 'manipulates_state' : False
99+ }
82100
83101 def __init__ (self ):
84102 Player .__init__ (self )
@@ -129,7 +147,13 @@ class Tullock(Player):
129147 than the opponent has in previous rounds."""
130148
131149 name = "Tullock"
132- memory_depth = 11 # long memory, modified by init
150+ classifier = {
151+ 'memory_depth' : 11 , # long memory, modified by init
152+ 'stochastic' : False ,
153+ 'inspects_source' : False ,
154+ 'manipulates_source' : False ,
155+ 'manipulates_state' : False
156+ }
133157
134158 def __init__ (self , rounds_to_cooperate = 11 ):
135159 Player .__init__ (self )
@@ -157,7 +181,13 @@ class Champion(Player):
157181 """
158182
159183 name = "Champion"
160- memory_depth = float ('inf' )
184+ classifier = {
185+ 'memory_depth' : float ('inf' ),
186+ 'stochastic' : False ,
187+ 'inspects_source' : False ,
188+ 'manipulates_source' : False ,
189+ 'manipulates_state' : False
190+ }
161191
162192 def strategy (self , opponent ):
163193 current_round = len (self .history )
@@ -185,7 +215,13 @@ class Eatherley(Player):
185215 """
186216
187217 name = "Eatherley"
188- memory_depth = float ('inf' )
218+ classifier = {
219+ 'memory_depth' : float ('inf' ),
220+ 'stochastic' : False ,
221+ 'inspects_source' : False ,
222+ 'manipulates_source' : False ,
223+ 'manipulates_state' : False
224+ }
189225
190226 def strategy (self , opponent ):
191227 # Cooperate on the first move
@@ -212,7 +248,13 @@ class Tester(Player):
212248 """
213249
214250 name = "Tester"
215- memory_depth = float ('inf' )
251+ classifier = {
252+ 'memory_depth' : float ('inf' ),
253+ 'stochastic' : False ,
254+ 'inspects_source' : False ,
255+ 'manipulates_source' : False ,
256+ 'manipulates_state' : False
257+ }
216258
217259 def __init__ (self ):
218260 Player .__init__ (self )
0 commit comments