- Any live cell with fewer than two live neighbours dies, as if by underpopulation.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any live cell with more than three live neighbours dies, as if by overpopulation.
- Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.
An example visualization, with a 50x50 grid after 122 generations:
[ATTACH=CONFIG]temp_24153_1632601231206_410[/ATTACH]
The same game, after 456 generations, looks like this:
[ATTACH=CONFIG]temp_24154_1632601260426_907[/ATTACH]
The program can be installed by entering the following command into Stata:
Code:
net install gameoflife, from("https://raw.githubusercontent.com/aliatia-1/gameoflife/main/")
0 Response to Stata implementation of Conway's Game of Life
Post a Comment