@@ -30,24 +30,22 @@ Running a match:
30
30
>> > match.play()
31
31
[(C, C), (C, C), (C, D), (C, D), (C, C)]
32
32
33
- Reproducing Axelrod's second tournament:
33
+ Running an instance of Axelrod's second tournament:
34
34
35
35
.. code-block :: python
36
36
37
- import axelrod as axl
38
- from axelrod_fortran.strategies import characteristics
39
- from axelrod_fortran.player import Player
40
-
41
- players = [Player(name) for name in characteristics.keys()
42
- if characteristics[name][" original_rank" ] is not None ]
43
-
44
- print (len (players), " players" )
37
+ >> > import axelrod_fortran as axlf
38
+ >> > import axelrod as axl
39
+ >> > players = [axlf.Player(name) for name in axlf.characteristics.keys()
40
+ >> > if axlf.characteristics[name][" original_rank" ] is not None ]
41
+ >> > print (len (players), " players" )
42
+ 62 players
43
+ >> > tournament = axl.Tournament(players, repetitions = 1 , turns = 200 )
44
+ >> > results = tournament.play()
45
+ >> > results.write_summary(' summary.csv' )
46
+ >> > plot = axl.Plot(results)
47
+ >> > plot.save_all_plots(" second_tournament" )
45
48
46
- tournament = axl.Tournament(players, repetitions = 100 )
47
- results = tournament.play(processes = 4 )
48
- results.write_summary(' summary.csv' )
49
- plot = axl.Plot(results)
50
- plot.save_all_plots(" second_tournament" )
51
49
52
50
Contributing
53
51
============
0 commit comments