Axelrod
Axelrod copied to clipboard
A research tool for the Iterated Prisoner's Dilemma
In #1478, @hodgesmr noted: > I did not see an LLM policy in the repository, but I felt it was important to note that, given open-source sensitivities to those tools....
When doing: ```sh pip install .[development] python -m pytest axelrod/tests/strategies/test_grudger.py ``` Tests exit with an error: ```sh ============================= test session starts ============================== platform darwin -- Python 3.13.7, pytest-9.0.2, pluggy-1.6.0 rootdir:...
The developer dependency documentation appears to be out of date: https://github.com/Axelrod-Python/Axelrod/blob/3fc68ed2af39b812a7db601f76c7f75228f187bb/docs/how-to/contributing/setting_up_the_environment.rst?plain=1#L7-L17 The file `requirements/development.txt` doesn't appear to exist. Looks like it was removed in #1440
I am new to this library, and as a `Hello World`-style exercise, I am trying to reproduce the results in [`Axelrod, 1980`](https://esp.mit.edu/download/2dd80247-be60-4e73-b49d-91b5b6988ff0/S12850_axelrod_1980.pdf) where Tit-For-Tat famously wins Axelrod's first IPD tournament....
Was unable to run `python rebuild_classifier_table.py` due to network issues, but the rest should be correct. I created adaptive_cooperator.py, test_adaptive_cooperator.py, made changes to the doctest, references, and _strategy.py.