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

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 is tested on Python versions 3.8, 3.9, and 3.10.

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/stable/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.14.0.tar.gz (47.5 MB view details)

Uploaded Source

Built Distribution

axelrod-4.14.0-py3-none-any.whl (47.6 MB view details)

Uploaded Python 3

File details

Details for the file axelrod-4.14.0.tar.gz.

File metadata

  • Download URL: axelrod-4.14.0.tar.gz
  • Upload date:
  • Size: 47.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for axelrod-4.14.0.tar.gz
Algorithm Hash digest
SHA256 dd5974bab01fa0a2b3967132266e7e1174d0005e1a7403364b260560322ae788
MD5 f149c4f76c47416531df532d77391b4a
BLAKE2b-256 62838a8292877eaadff73875d33ac84aea4238ef320bfc369337645393444286

See more details on using hashes here.

File details

Details for the file axelrod-4.14.0-py3-none-any.whl.

File metadata

  • Download URL: axelrod-4.14.0-py3-none-any.whl
  • Upload date:
  • Size: 47.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for axelrod-4.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c4355550c95aa945ed828b82cf3ba172c4642573eb661bb9320d3fab0e4f7d
MD5 af3ad1f04e4de3654f0a5847333938d9
BLAKE2b-256 e7bc67c0b3bf6952cfd944208de5a969e8b76f24e7002f20691cd29db9305717

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