Skip to content

Commit ef130c2

Browse files
committed
Reclassify SteinAndRappoport.
It is infinite memory as it defects on last 2 rounds.
1 parent f6479f7 commit ef130c2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

axelrod/strategies/axelrod_first.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ class SteinAndRapoport(Player):
529529

530530
name = 'Stein and Rapoport'
531531
classifier = {
532-
'memory_depth': 15,
532+
'memory_depth': float("inf"),
533533
'stochastic': False,
534534
'makes_use_of': {"length"},
535535
'long_run_time': False,

axelrod/tests/strategies/test_axelrod_first.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ class TestSteinAndRapoport(TestPlayer):
370370
name = "Stein and Rapoport: 0.05: (D, D)"
371371
player = axelrod.SteinAndRapoport
372372
expected_classifier = {
373-
'memory_depth': 15,
373+
'memory_depth': float("inf"),
374374
'long_run_time': False,
375375
'stochastic': False,
376376
'makes_use_of': {'length'},
@@ -524,11 +524,11 @@ def test_strategy(self):
524524
attrs={'fresh_start': False})
525525

526526
# check the fresh start condition: least 20 rounds since the last ‘fresh start’
527-
opponent = axelrod.Cycler('CCCCD')
528-
actions = [(C, C), (C, C), (C, C), (C, C), (C, D), (D, C), (C, C),
529-
(C, C), (C, C), (C, D), (D, C), (D, C), (C, C), (C, C),
530-
(C, D), (D, C), (D, C), (D, C), (C, C), (C, D), (D, C),
531-
(D, C), (D, C), (C, C), (C, D), (D, C), (C, C), (C, C),
527+
opponent = axelrod.Cycler('CCCCD')
528+
actions = [(C, C), (C, C), (C, C), (C, C), (C, D), (D, C), (C, C),
529+
(C, C), (C, C), (C, D), (D, C), (D, C), (C, C), (C, C),
530+
(C, D), (D, C), (D, C), (D, C), (C, C), (C, D), (D, C),
531+
(D, C), (D, C), (C, C), (C, D), (D, C), (C, C), (C, C),
532532
(C, C), (C, D), (D, C), (D, C), (C, C), (C, C), (C, D)]
533533
self.versus_test(opponent, expected_actions=actions,
534534
match_attributes={'length': 35},

0 commit comments

Comments
 (0)