#!/usr/bin/env python # coding: utf-8 # This notebook shows how to build a noisy tournament. The documentation for this can be found here: http://axelrod.readthedocs.org/en/latest/tutorials/getting_started/noisy_tournaments.html # In[6]: import axelrod as axl import random # To set a seed get_ipython().run_line_magic('matplotlib', 'inline') # In[7]: random.seed(1) strategies = [axl.Cooperator(), axl.Defector(), axl.TitForTat(), axl.Grudger(), axl.Random()] noise = 0.1 tournament = axl.Tournament(strategies, noise=noise) results = tournament.play() plot = axl.Plot(results) plot.boxplot(); # In[ ]: