### Count Available Strategies Source: http://axelrod.readthedocs.org Import the library and count the total number of available strategies. ```python >>> import axelrod as axl >>> len(axl.strategies) 243 ``` -------------------------------- ### Build and Play a Tournament Source: http://axelrod.readthedocs.org Create a tournament with a given set of players and play the tournament. Results are ranked by name. ```python >>> import axelrod as axl >>> players = (axl.Cooperator(), axl.Alternator(), axl.TitForTat()) >>> tournament = axl.Tournament(players) >>> results = tournament.play() >>> results.ranked_names ['Alternator', 'Tit For Tat', 'Cooperator'] ``` -------------------------------- ### Study Evolutionary Process with Moran Process Source: http://axelrod.readthedocs.org Set up a Moran process with a given set of players and simulate its evolution. Displays population counts over time. ```python >>> import axelrod as axl >>> players = (axl.Cooperator(), axl.Alternator(), axl.TitForTat()) >>> mp = axl.MoranProcess(players) >>> populations = mp.play() >>> populations [Counter({'Alternator': 1, 'Cooperator': 1, 'Tit For Tat': 1}), Counter({'Alternator': 1, 'Cooperator': 1, 'Tit For Tat': 1}), Counter({'Cooperator': 1, 'Tit For Tat': 2}), Counter({'Cooperator': 1, 'Tit For Tat': 2}), Counter({'Tit For Tat': 3})] ``` -------------------------------- ### Create a Match Between Two Players Source: http://axelrod.readthedocs.org Instantiate two players, create a match between them, and play a specified number of rounds. Displays the interactions. ```python >>> import axelrod as axl >>> players = (axl.Alternator(), axl.TitForTat()) >>> match = axl.Match(players, 5) >>> interactions = match.play() >>> interactions [(C, C), (D, C), (C, D), (D, C), (C, D)] ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.