Skip to content

MaroonCoffee/cellular-automaton-pd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Prisoner's Dilemma Cellular Automaton

This cellular automaton simulates the classic "prisoner's dilemma" and creates beautiful fractal patterns while doing so. For more information, see the paper that inspired this program.

Nowak, M., May, R. Evolutionary games and spatial chaos. Nature 359, 826–829 (1992). https://doi.org/10.1038/359826a0

There are several parameters you can change in the script, the most important one being the b value which changes how the cellular automaton behaves.

To start or pause the simulation, press the space bar. To reset the screen back to its start state, press 'c'. You can also toggle cells manually by clicking them.

Demo

Prerequisites

  • python
    pip install -r requirements. txt

Usage

  • command line
    python main.py

About

Cellular Automaton simulation of the prisoner's dilemma

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages