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