Skip to content

Commit 100d85e

Browse files
drvinceknightmarcharper
authored andcommitted
Simplify the doctest.
The tests were failing on ubuntu https://github.com/Axelrod-Python/Axelrod/actions/runs/8198844499/job/22423011180?pr=1428 This was caused by some rounding error. I think this cleans things up.
1 parent 22d8d7c commit 100d85e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/tutorials/new_to_game_theory_and_or_python/summarising_tournaments.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@ It is also possible to write this data directly to a csv file using the
3333
... for row in csvreader:
3434
... print(row)
3535
['Rank', 'Name', 'Median_score', 'Cooperation_rating', 'Wins', 'Initial_C_rate', 'CC_rate', 'CD_rate', 'DC_rate', 'DD_rate', 'CC_to_C_rate', 'CD_to_C_rate', 'DC_to_C_rate', 'DD_to_C_rate']
36-
['0', 'Defector', '2.6...', '0.0', '3.0', '0.0', '0.0', '0.0', '0.4...', '0.6...', '0', '0', '0', '0']
37-
['1', 'Tit For Tat', '2.3...', '0.7', '0.0', '1.0', '0.66...', '0.03...', '0.0', '0.3...', '1.0', '0', '0', '0']
38-
['2', 'Grudger', '2.3...', '0.7', '0.0', '1.0', '0.66...', '0.03...', '0.0', '0.3...', '1.0', '0', '0', '0']
39-
['3', 'Cooperator', '2.0...', '1.0', '0.0', '1.0', '0.66...', '0.33...', '0.0', '0.0', '1.0', '1.0', '0', '0']
36+
['0', 'Defector', ...
37+
['1', 'Tit For Tat', ...
38+
['2', 'Grudger', ...
39+
['3', 'Cooperator', ...
4040

4141

4242
The result set class computes a large number of detailed outcomes read about

0 commit comments

Comments
 (0)