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:
36
36
37
37
>> > import axelrod_fortran as axlf
38
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 ]
39
+ >> > players = [axlf.Player(name) for name in axlf.second_tournament_strategies]
41
40
>> > print (len (players), " players" )
42
41
62 players
43
42
>> > tournament = axl.Tournament(players, repetitions = 1 , turns = 200 )
Original file line number Diff line number Diff line change 1
1
__version__ = "0.1.0"
2
2
3
3
from .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 349
349
}
350
350
351
351
all_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