Skip to main content
Help us improve Python packaging – donate today!

Python wrapper for strategies originally written in Fortran

Project Description

Python wrapper for strategies originally written in Fortran.

  • Free software: MIT license


To use this library the original Fortran code must be compiled:

pip install axelrod-fortran


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)
[(C, C), (C, C), (C, D), (C, D), (C, C)]

Running an instance of Axelrod’s second tournament:

>>> import axelrod_fortran as axlf
>>> import axelrod as axl
>>> players = [axlf.Player(name) for name in axlf.second_tournament_strategies]
>>> print(len(players), "players")
63 players
>>> tournament = axl.Tournament(players, repetitions=1,
...                             turns=63, match_attributes={"length": -1})
>>> results =
>>> results.write_summary('summary.csv')
>>> plot = axl.Plot(results)
>>> plot.save_all_plots("second_tournament")


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


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 history Release notifications

History Node


History Node


History Node


History Node


History Node


This version
History Node


History Node


History Node


History Node


History Node


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
axelrod_fortran-0.3.2-py3-none-any.whl (7.4 kB) Copy SHA256 hash SHA256 Wheel py3 Oct 13, 2017
axelrod-fortran-0.3.2.tar.gz (10.7 kB) Copy SHA256 hash SHA256 Source None Oct 13, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page