Skip to content

Instantly share code, notes, and snippets.

@drvinceknight
Created May 9, 2016 08:08
Show Gist options
  • Save drvinceknight/2f42efc2388f41d3da7931ffc10aee6f to your computer and use it in GitHub Desktop.
Save drvinceknight/2f42efc2388f41d3da7931ffc10aee6f to your computer and use it in GitHub Desktop.
import axelrod as axl
import random
from sys import argv
random.seed(1)
if len(argv) == 1:
processes = None
else:
processes = 2
N = 20
players = [s() for s in random.sample(axl.ordinary_strategies, N)]
tournament = axl.Tournament(players, turns=500, repetitions=4, processes=processes)
tournament.play(progress_bar=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment