| Hosted by CoCalc | Download
Kernel: Python 3 (Anaconda)
import axelrod as axl players = [axl.Cooperator(), axl.Defector(), axl.TitForTat(), axl.Grudger(), axl.AntiTitForTat()] players.append(axl.Random()) tournament = axl.Tournament(players) results = tournament.play()
Playing matches: 100%|██████████| 21/21 [00:00<00:00, 313.39it/s] Analysing: 100%|██████████| 210/210 [00:00<00:00, 2012.78it/s] Finishing: 100%|██████████| 25/25 [00:00<00:00, 3649.51it/s]
plot = axl.Plot(results) _=plot.winplot()
Image in a Jupyter notebook
_ = plot.payoff()
Image in a Jupyter notebook