2019-03-18 16:05:51 -07:00
|
|
|
# Conway
|
|
|
|
A termbox program for running Conway's Game of Life.
|
2019-03-18 16:48:54 -07:00
|
|
|
|
|
|
|
# Usage
|
2019-03-18 17:20:07 -07:00
|
|
|
Command line flags:
|
|
|
|
|
|
|
|
* `-S[0-8]*` the rules for when an alive cell survives
|
|
|
|
* `-B[0-8]*` the rules for when a new cell is born
|
|
|
|
* `-A[0-256]` provide a color for alive cells
|
|
|
|
* `-D[0-256]` provide a color for dead cells
|
|
|
|
|
|
|
|
Some interesting rulesets can be found in [this list](http://psoup.math.wisc.edu/mcell/rullex_life.html).
|
2019-03-18 16:48:54 -07:00
|
|
|
|
2019-03-18 17:37:37 -07:00
|
|
|
Actions:
|
|
|
|
|
|
|
|
* Mouse: draw (by default: create new cells)
|
|
|
|
* Space: toggle mouse mode between create/destroy
|
|
|
|
* `p`: toggle play/pause
|
|
|
|
* `q` or Escape: quit
|
|
|
|
* `c`: clear the world
|