Simple Recreation of the prisoner's dilemma model from Axelrod's "Evolution of Cooperation."
Usage via command line:
# install dependencies
make init
# 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
for --all
(Battle Royal):
![Pasted image 2023-08-28 at 18 26 01@2x](https://private-user-images.githubusercontent.com/73286100/263762872-a5232774-5272-48f2-9153-2bf91e4f7ddb.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU0MzI4MTksIm5iZiI6MTcyNTQzMjUxOSwicGF0aCI6Ii83MzI4NjEwMC8yNjM3NjI4NzItYTUyMzI3NzQtNTI3Mi00OGYyLTkxNTMtMmJmOTFlNGY3ZGRiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwOTA0VDA2NDgzOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWU5MjYxYjZkOTY3NDAyZjU3ODYzYzgzZGQwODcwOWY1MjIwYmExZmQ5NTllZGVjODQ2YjJhYzBkODAzZjU1ZDUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.6INB9P6CMJcl_n5Cb0bvovwoqc2XnIZxFQ_Od5UMLd8)
Please cite this software project as (APA):
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: