Skip to main content

Reproduce the Axelrod iterated prisoners dilemma tournament

Project description

https://coveralls.io/repos/github/Axelrod-Python/Axelrod/badge.svg?branch=master https://img.shields.io/pypi/v/Axelrod.svg https://travis-ci.org/Axelrod-Python/Axelrod.svg?branch=packaging https://zenodo.org/badge/19509/Axelrod-Python/Axelrod.svg

Join the chat at https://gitter.im/Axelrod-Python/Axelrod

Axelrod

Goals

A Python library with the following principles and goals:

  1. Enabling the reproduction of previous Iterated Prisoner’s Dilemma research as easily as possible.

  2. Creating the de-facto tool for future Iterated Prisoner’s Dilemma research.

  3. Providing as simple a means as possible for anyone to define and contribute new and original Iterated Prisoner’s Dilemma strategies.

  4. Emphasizing readability along with an open and welcoming community that is accommodating for developers and researchers of a variety of skill levels.

Features

With Axelrod you:

The library has 100% test coverage and is extensively documented. See the documentation for details and examples of all the features: http://axelrod.readthedocs.org/

An open reproducible framework for the study of the iterated prisoner’s dilemma: a peer reviewed paper introducing the library (22 authors).

Installation

The library requires Python 3.5 or greater.

The simplest way to install is:

$ pip install axelrod

To install from source:

$ git clone https://github.com/Axelrod-Python/Axelrod.git
$ cd Axelrod
$ python setup.py install

Quick Start

The following runs a basic tournament:

>>> import axelrod as axl
>>> axl.seed(0)  # Set a seed
>>> players = [s() for s in axl.demo_strategies]  # Create players
>>> tournament = axl.Tournament(players)  # Create a tournament
>>> results = tournament.play()  # Play the tournament
>>> results.ranked_names
['Defector', 'Grudger', 'Tit For Tat', 'Cooperator', 'Random: 0.5']

Examples

Contributing

All contributions are welcome!

You can find helpful instructions about contributing in the documentation: http://axelrod.readthedocs.org/en/latest/tutorials/contributing/index.html

Publications

You can find a list of publications that make use of or cite the library on the citations page.

Contributors

The library has had many awesome contributions from many great contributors. The Core developers of the project are:

Project details


Release history Release notifications | RSS feed

This version

4.9.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Axelrod-4.9.0.tar.gz (194.0 kB view details)

Uploaded Source

Built Distribution

Axelrod-4.9.0-py2.py3-none-any.whl (185.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Axelrod-4.9.0.tar.gz.

File metadata

  • Download URL: Axelrod-4.9.0.tar.gz
  • Upload date:
  • Size: 194.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for Axelrod-4.9.0.tar.gz
Algorithm Hash digest
SHA256 0e844c1feb2664d7882a7ddfdf5b60c336268cf574b5d448947bb9a53ad54c89
MD5 90b634c65cfa108639a846e883658b94
BLAKE2b-256 d97ea79aedded3a071f52888eb45f2bfdc61900dc51db5ca37fa6b96a3e075fa

See more details on using hashes here.

File details

Details for the file Axelrod-4.9.0-py2.py3-none-any.whl.

File metadata

  • Download URL: Axelrod-4.9.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 185.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for Axelrod-4.9.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0d99055f15c48be74bf45f67ec50e6ed94117895c4f9e64198156a235738bb5
MD5 92c2ab50e5712fe4331d1a5d2da7247a
BLAKE2b-256 5232a588a153c50cb3e0d86b36f1c481b22eecdc29043432a94feb74fdf35921

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page