Skip to main content

Reproduce the Axelrod iterated prisoners dilemma tournament

Project description

https://img.shields.io/pypi/v/Axelrod.svg https://zenodo.org/badge/19509/Axelrod-Python/Axelrod.svg https://github.com/Axelrod-Python/Axelrod/workflows/CI/badge.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.6 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
>>> players = [s() for s in axl.demo_strategies]  # Create players
>>> tournament = axl.Tournament(players, seed=1)  # 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: https://axelrod.readthedocs.io/en/latest/how-to/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

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.12.0.tar.gz (207.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Axelrod-4.12.0-py2.py3-none-any.whl (192.0 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: Axelrod-4.12.0.tar.gz
  • Upload date:
  • Size: 207.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.14.0 CPython/3.8.3

File hashes

Hashes for Axelrod-4.12.0.tar.gz
Algorithm Hash digest
SHA256 b979c7733e686b16c669822498c94a267920627a2062be90715c0a8cf1f6ebd5
MD5 c72ae6fa27ba49b5ce3bc427ea65297b
BLAKE2b-256 9f1f76a9117911a8ff5daef0f7eaca76a92c3776a5cb3ee2a3a0140fbfff8f00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Axelrod-4.12.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 192.0 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0.post20200714 requests-toolbelt/0.9.1 tqdm/4.14.0 CPython/3.8.3

File hashes

Hashes for Axelrod-4.12.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f3d51559ba1bdd6b99ea122be1356dca309880e8e8d07ad91b5e50b68af85a25
MD5 6de44c1eb7c8028939269529d1d0a8c1
BLAKE2b-256 ece52964531bd9be1bd219cad8a8258e70ceb40ca9bf6d5a03a58142f6ea34f7

See more details on using hashes here.

Supported by

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