Skip to content

Commit c612c1e

Browse files
committed
Reclassify memory of Dynamic2TfT
This strategy makes use of the cooperation count. It, thus does ont have memory 2.
1 parent e9da4f9 commit c612c1e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

axelrod/strategies/titfortat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class DynamicTwoTitsForTat(Player):
114114

115115
name = 'Dynamic Two Tits For Tat'
116116
classifier = {
117-
'memory_depth': 2, # Long memory, memory-2
117+
'memory_depth': float("inf"),
118118
'stochastic': True,
119119
'makes_use_of': set(),
120120
'long_run_time': False,
@@ -127,7 +127,7 @@ class DynamicTwoTitsForTat(Player):
127127
def strategy(opponent):
128128
# First move
129129
if not opponent.history:
130-
# Make sure we cooporate first turn
130+
# Make sure we cooperate first turn
131131
return C
132132
if D in opponent.history[-2:]:
133133
# Probability of cooperating regardless

axelrod/tests/strategies/test_titfortat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class TestDynamicTwoTitsForTat(TestPlayer):
124124
name = 'Dynamic Two Tits For Tat'
125125
player = axelrod.DynamicTwoTitsForTat
126126
expected_classifier = {
127-
'memory_depth': 2,
127+
'memory_depth': float("inf"),
128128
'stochastic': True,
129129
'makes_use_of': set(),
130130
'inspects_source': False,

0 commit comments

Comments
 (0)