Skip to content

Commit 7665920

Browse files
authored
Merge pull request #44 from Axelrod-Python/issue-36
[#36] Add original rank for K74R
2 parents 36d0af7 + 8aa18b7 commit 7665920

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Running an instance of Axelrod's second tournament:
3838
>>> import axelrod as axl
3939
>>> players = [axlf.Player(name) for name in axlf.second_tournament_strategies]
4040
>>> print(len(players), "players")
41-
62 players
41+
63 players
4242
>>> tournament = axl.Tournament(players, repetitions=1, turns=200)
4343
>>> results = tournament.play()
4444
>>> results.write_summary('summary.csv')

src/axelrod_fortran/strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@
225225
'axelrod-python_class': None,
226226
'stochastic': False,
227227
'author': 'Edward Friedland',
228-
'original_rank': None},
228+
'original_rank': 61},
229229
'k74rxx': {
230230
'axelrod-python_class': None,
231231
'stochastic': False,

tests/test_strategies.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from axelrod_fortran import characteristics
2+
3+
4+
def test_original_rank():
5+
ranks = [
6+
details['original_rank']
7+
for details in characteristics.values()
8+
if details['original_rank'] is not None]
9+
10+
assert sorted(ranks) = list(range(1, 63 + 1))

0 commit comments

Comments
 (0)