Base: Add manual page for GameOfLife

This commit is contained in:
David Lindbom 2022-01-09 20:27:35 +01:00 committed by Brian Gianforcaro
parent 570d63b601
commit ecdcf4f293
Notes: sideshowbarker 2024-07-18 00:34:07 +09:00

View file

@ -0,0 +1,21 @@
## Name
GameOfLife
## Synopsis
```**sh
$ GameOfLife
```
## Description
GameOfLife is an implementation of John Conway's Game of Life.
The game is a cellular automaton where each cell is either dead (grey) or alive (yellow) and will change state in the next tick if any of the following rules are fulfilled:
* An alive cell will die by underpopulation if it has fewer than two neighbors.
* An alive cell will die by overpopulation if it has more than three neighbors.
* A dead cell will come alive by reproduction if it has exactly three neighbors.
Otherwise, it will keep its old state.