File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,7 @@ Running an instance of Axelrod's second tournament:
3636
3737 >> > import axelrod_fortran as axlf
3838 >> > 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 ]
39+ >> > players = [axlf.Player(name) for name in axlf.second_tournament_strategies]
4140 >> > print (len (players), " players" )
4241 62 players
4342 >> > tournament = axl.Tournament(players, repetitions = 1 , turns = 200 )
Original file line number Diff line number Diff line change 11__version__ = "0.1.0"
22
33from .player import Player
4- from .strategies import characteristics , all_strategies
4+ from .strategies import (all_strategies , characteristics ,
5+ second_tournament_strategies )
Original file line number Diff line number Diff line change 349349}
350350
351351all_strategies = characteristics .keys ()
352+
353+ # Players from Axelrod's second tournament.
354+ second_tournament_strategies = [
355+ name for name in characteristics .keys ()
356+ if characteristics [name ]["original_rank" ] is not None ]
You can’t perform that action at this time.
0 commit comments