Overview
Python wrapper for strategies originally written in Fortran
Free software: MIT license
Installation
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)]
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 = tournament.play()
>>> results.write_summary('summary.csv')
>>> plot = axl.Plot(results)
>>> plot.save_all_plots("second_tournament")
Contributing
Please see CONTRIBUTING.rst for details about installing for development and running the test suite.
Changelog
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
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
Metadata
Release files for axelrod-fortran 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| axelrod-fortran-0.3.0.tar.gz | 10.2 kB | Without provenance | Details for axelrod-fortran-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| axelrod_fortran-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for axelrod_fortran-0.3.0-py3-none-any.whl |
Total release size: 17.2 kB
Release files / axelrod-fortran-0.3.0.tar.gz
| Download URL | axelrod-fortran-0.3.0.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
423f9fadd69e67c07847843192e198a4b65b5f662b237207661637f1cf5ebd00
|
|
BLAKE2b-256 checksum How to use checksums |
a7dbb723923a6356d968c295891e9210b58f58d27a18ed8873ff7bbe9c447dc6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / axelrod_fortran-0.3.0-py3-none-any.whl
| Download URL | axelrod_fortran-0.3.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7fcd83d1a2d6ff57c496f974bd381f4161b0dd955d42f3b2d6e4597033575ab6
|
|
BLAKE2b-256 checksum How to use checksums |
b578fdd69ca185cd36a77a300f41e5d7b619cea3d4942ebb875e28d4b17fa268
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for axelrod-fortran 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.