Created
May 9, 2016 08:08
-
-
Save drvinceknight/2f42efc2388f41d3da7931ffc10aee6f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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