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 961ee9e commit 2114177Copy full SHA for 2114177
axelrod/strategies/grudger.py
@@ -325,7 +325,6 @@ class SpitefulCC(Player):
325
classifier = {
326
"memory_depth": float("inf"), # Long memory
327
"stochastic": False,
328
- "makes_use_of": set(),
329
"long_run_time": False,
330
"inspects_source": False,
331
"manipulates_source": False,
@@ -334,6 +333,10 @@ class SpitefulCC(Player):
334
333
335
@staticmethod
336
def strategy(opponent: Player) -> Action:
+ """
337
+ Cooperates until the oponent defects. Then defects forever.
338
+ Always cooperates twice at the start.
339
340
if len(opponent.history) < 2:
341
return C
342
elif opponent.defections:
0 commit comments