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.
- python
pip install -r requirements. txt
- command line
python main.py