Skip to main content

Python wrapper for strategies originally written in Fortran

Project description

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.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

Project details


Download files

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

Source Distribution

axelrod-fortran-0.4.5.tar.gz (12.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_fortran-0.4.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file axelrod-fortran-0.4.5.tar.gz.

File metadata

  • Download URL: axelrod-fortran-0.4.5.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for axelrod-fortran-0.4.5.tar.gz
Algorithm Hash digest
SHA256 8d80d12e5d4f493ab3381f35c7870f7b67abd0e2d4a76204ab2f58dfb9484739
MD5 cfe2e63aaed5cfe2ab6aa7cddcc68f85
BLAKE2b-256 41419ad81b846a1fcb3ce27ca8d6060404d2d1b19e9d117465720d86e4f02f39

See more details on using hashes here.

File details

Details for the file axelrod_fortran-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: axelrod_fortran-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.6

File hashes

Hashes for axelrod_fortran-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f7195a8ad6b1e77edcfa71dc6aa5a26e35d5d931b594eaf0cdf7d7035b109654
MD5 c08c1c6c4e9799365cf4be8a44868eb8
BLAKE2b-256 3a64e38423b1d9a391c7a7a97aed99c73d9adfe45cad14dd5d912dc0d024342b

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