Skip to content

Python wrapper library around TourExec Fortran for Axelrod's second tournament.

License

Notifications You must be signed in to change notification settings

Axelrod-Python/axelrod-fortran

Repository files navigation

Overview

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.

About

Python wrapper library around TourExec Fortran for Axelrod's second tournament.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages