https://github.com/chrisgrieser/axelrod-prisoner-dilemma
Recreation of the prisoner's dilemma model from Axelrod's "Evolution of Cooperation" in Python
https://github.com/chrisgrieser/axelrod-prisoner-dilemma
axelrod-model prisoner-dilemma-simulation sociology
Last synced: 20 days ago
JSON representation
Recreation of the prisoner's dilemma model from Axelrod's "Evolution of Cooperation" in Python
- Host: GitHub
- URL: https://github.com/chrisgrieser/axelrod-prisoner-dilemma
- Owner: chrisgrieser
- License: mit
- Created: 2023-08-26T10:04:42.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-11-27T15:59:12.000Z (5 months ago)
- Last Synced: 2025-04-04T16:36:13.285Z (28 days ago)
- Topics: axelrod-model, prisoner-dilemma-simulation, sociology
- Language: Python
- Homepage:
- Size: 112 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Citation: CITATION.bib
Awesome Lists containing this project
README
# Axelrod Prisoner's Dilemma
Simple Recreation of the prisoner's dilemma model from Axelrod's "Evolution of
Cooperation."Usage via command line:
```bash
# install dependencies
make init
``````bash
# activate virtual environment
source ./.venv/bin/activate# show API docs
make docs# Main Usage (Output to terminal):
python3 prisoner_dilemma/main.py "actor1_strategy" "actor2_strategy"# Battle Royale — every strategy against every strategy (Output to html):
python3 prisoner_dilemma/main.py --all# Help
python3 prisoner_dilemma/main.py --help
```## Output
for `--all` (Battle Royal):
## Recommended Citation
Please cite this software project as (APA):
```conf
Grieser, C. (2023). Simulation of Axelrod prisoner’s dilemma [Computer
software]. https://github.com/chrisgrieser/axelrod-prisoner-dilemma
```For other citation styles, use the following metadata:
- [Citation File Format](./CITATION.cff)
- [BibTeX](./CITATION.bib)