@@ -30,24 +30,22 @@ Running a match:
3030 >> > match.play()
3131 [(C, C), (C, C), (C, D), (C, D), (C, C)]
3232
33- Reproducing Axelrod's second tournament:
33+ Running an instance of Axelrod's second tournament:
3434
3535.. code-block :: python
3636
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" )
4548
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" )
5149
5250 Contributing
5351============
0 commit comments