Skip to content

Commit 53dd1dc

Browse files
Merge pull request #64 from Axelrod-Python/add-grofman
Add grofman
2 parents 2682502 + b5ba5b5 commit 53dd1dc

File tree

4 files changed

+19
-3
lines changed

4 files changed

+19
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
axelrod>=3.7.0
1+
axelrod>=3.8.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def read(*names, **kwargs):
5454
'Topic :: Utilities',
5555
],
5656
install_requires=[
57-
'axelrod >= 3.7.0',
57+
'axelrod >= 3.8.0',
5858
],
5959
python_requires=">=3.5",
6060
)

src/axelrod_fortran/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@
287287
'author': 'Robert B Falk and James M Langsted',
288288
'original_rank': 33},
289289
'k86r': {
290-
'axelrod-python_class': None,
290+
'axelrod-python_class': axl.MoreGrofman,
291291
'stochastic': False,
292292
'author': 'Bernard Grofman',
293293
'original_rank': 28},

tests/test_player.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,3 +129,19 @@ def test_implemented_strategies():
129129
interactions = match.play()
130130
axl_match = Match((axl_player, opponent))
131131
assert interactions == axl_match.play(), (player, opponent)
132+
133+
def test_champion_v_alternator():
134+
"""
135+
Specific regression test for a bug.
136+
"""
137+
player = Player("k61r")
138+
opponent = Alternator()
139+
140+
match = Match((player, opponent))
141+
142+
seed(0)
143+
interactions = match.play()
144+
assert interactions[25:30] == [(C, D), (C, C), (C, D), (D, C), (C, D)]
145+
146+
seed(0)
147+
assert interactions == match.play()

0 commit comments

Comments
 (0)