Skip to main content

Python wrapper for strategies originally written in Fortran.

  • Free software: MIT license

Installation

To use this library the original Fortran code must be compiled: https://github.com/Axelrod-Python/TourExec.

pip install axelrod-fortran

Usage

Running a match:

>>> import axelrod_fortran as axlf
>>> import axelrod as axl
>>> p1 = axlf.Player('k31r')
>>> p2 = axlf.Player('k33r')
>>> match = axl.Match((p1, p2), turns=5)
>>> match.play()
[(C, C), (C, C), (C, D), (C, D), (C, C)]

Contributing

Please see CONTRIBUTING.rst for details about installing for development and running the test suite.

Changelog

v0.4.8 (2020-08-20)

  • Remove support for Python 3.5

  • Add support for Python 3.7

  • Add support for random seeding

v0.4.7 (2020-03-13)

  • Rename strategies to match latest axelrod names

  • Remove tag showing K59R as implemented by axl.RevisedDowning

v0.4.6 (2019-01-01)

  • Tag K58R as implemented by Rowsam

v0.4.5 (2018-10-15)

  • Add automatic copying of shared library for multiple copies of players

v0.4.4 (2018-03-15)

  • Tag K66R as implemented by Mikkelson

v0.4.3 (2018-02-07)

  • Tag K47R as implemented by RichardHufford

  • Tag K51R as implemented by Colbert

  • Tag K64R as implemented by Yamanhi

v0.4.2 (2018-01-10)

  • Tag K35R as implemented by Getzler

  • Tag K41R as implemented by Weiner

  • Tag K60R as implemented by GraaskampKatzen

  • Tag K68R as implemented by Leyvraz

  • Tag K72R as implemented by White

  • Tag K75R as implemented by Harrington

  • Tag K83R as implemented by Black

  • Tag K84R as implemented by MoreTidemanAndChieruzz

v0.4.1 (2017-11-29)

  • Tag K31R as implemented by GoByMajority

  • Tag K32R as implemented by Kluepfel

  • Tag K42R as implemented by Borufsen

  • Tag K44R as implemented by WmAdams

  • Tag K49R as implemented by Cave

v0.4.0 (2017-10-20)

  • Add ability to pass name of shared library file

v0.3.2 (2017-10-13)

  • Tag K76R as implemented by axl.Gladstein

  • Tag K67R as implemented by axl.Tranquilizer

  • Tag K90R as implemented by axl.TitFor2Tats

  • Tag K86R as implemented by axl.MoreGrofman

  • Remove Tag showing K61R as implemented by axl.Champion

  • Add test for Champion (K61R)

v0.3.1 (2017-08-04)

  • Identify strategy K61R as Champion by Danny Champion ranked at 2.

v0.3.0 (2017-08-04)

  • Identify strategy K92R as Tit For Tat by Anatol Rapoport ranked at 1.

v0.2.0 (2017-07-30)

  • Identify strategy K74R as participating in the second tournament, written by Edward Friedland and ranked at 61

All changes between v0.1.0 and this release

v0.1.0 (2017-07-29)

  • Player class to wrap a fortran strategy function into the axelrod library

  • Characteristics dict with details of stochasticity, author and original ranking for each function

  • Pre-built lists for all strategies and strategies which participated in Axelrod’s second tournament

Release files for axelrod-fortran 0.4.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axelrod-fortran 0.4.8
File Size Uploaded
axelrod-fortran-0.4.8.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for axelrod-fortran 0.4.8
File Interpreter ABI Platform
axelrod_fortran-0.4.8-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / axelrod-fortran-0.4.8.tar.gz

Download URL axelrod-fortran-0.4.8.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d7f22fe8eaf8541e7e875f45dbf1b7ddd91e13180c340f56d2c62c8a0b471159
BLAKE2b-256 checksum
How to use checksums
c62acf45fa273ee034896a2d6906f7dca9373c336c2076b2c696d9930045a85f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release files / axelrod_fortran-0.4.8-py3-none-any.whl

Download URL axelrod_fortran-0.4.8-py3-none-any.whl
Size 9.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f4575ab58fdc476a023bd882d6779a74757e3eb5a102ba8544a07fd0f5cab102
BLAKE2b-256 checksum
How to use checksums
22a62d5942dca30ea4504069790280e83c8097530e5f41e7e674fb6f63e0760a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.2

Release history Release notifications | RSS feed

This release

0.4.8 This release

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

3 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page