Skip to content

Latest commit

 

History

History
45 lines (32 loc) · 1.1 KB

README.md

File metadata and controls

45 lines (32 loc) · 1.1 KB

Axelrod Prisoner's Dilemma

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

Output

for --all (Battle Royal):

Pasted image 2023-08-28 at 18 26 01@2x

Recommended Citation

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: