mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Base: Add manual page for GameOfLife
This commit is contained in:
parent
570d63b601
commit
ecdcf4f293
Notes:
sideshowbarker
2024-07-18 00:34:07 +09:00
Author: https://github.com/DavidLindbom Commit: https://github.com/SerenityOS/serenity/commit/ecdcf4f293f Pull-request: https://github.com/SerenityOS/serenity/pull/11772 Reviewed-by: https://github.com/Rummskartoffel Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 21 additions and 0 deletions
21
Base/usr/share/man/man6/GameOfLife.md
Normal file
21
Base/usr/share/man/man6/GameOfLife.md
Normal 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.
|
Loading…
Reference in a new issue