File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -228,7 +228,7 @@ class Graaskamp(Player):
228
228
229
229
name = "Graaskamp"
230
230
classifier = {
231
- "memory_depth" : 1 ,
231
+ "memory_depth" : float ( "inf" ) ,
232
232
"stochastic" : True ,
233
233
"makes_use_of" : set (),
234
234
"long_run_time" : False ,
@@ -269,7 +269,7 @@ def strategy(self, opponent: Player) -> Action:
269
269
270
270
if self .opponent_is_random :
271
271
return D
272
- elif all (opponent .history [i ] == self .history [i - 1 ] for i in range (1 , len (self .history + 1 ))):
272
+ elif all (opponent .history [i ] == self .history [i - 1 ] for i in range (1 , len (self .history ))):
273
273
# Check if opponent plays Tit for Tat
274
274
if opponent .history [- 1 ] == D :
275
275
return D
@@ -278,7 +278,7 @@ def strategy(self, opponent: Player) -> Action:
278
278
if len (self .history ) == self .next_random_defection_turn :
279
279
self .next_random_defection_turn = random .randint (5 , 15 ) + len (self .history ) # resample the next defection turn
280
280
return D
281
- return C
281
+ return C
282
282
283
283
284
284
class Grofman (Player ):
You can’t perform that action at this time.
0 commit comments