GliPy-cli
is a command line front-end interface for glipy, a Cellular Automaton Game of Life library written in Python.
glipy-cli
can render any Conway cellular automaton directly to your terminal emulator.
- Visualize Conway's Gameo f Life automatons directly from
.life
,.rle
pattern files, or from a remote URL that points to a valid.rle
(widely available on LifeWiki) - Select any range of hex colors for cell states
Quickly render a random simulation by running glipy-cli
in your terminal.
glip-cli
has several command line options
Option | Description |
---|---|
<target> [positional; optional] | If no target is passed, render a random simulation. Accepts paths to .rle/.life, or remote URL to rle format |
-r --refresh-rate | Specify a refresh rate (generations/second) |
-g --generations | The number of generations a simulation should run for (default ∞) |
-t --cell-type | Specify the cell type to use. Options: moore , neumann |
-c --colors | Specify colors for dead/alive cells (accepts hex or ANSI color codes) |
-x --debug | Enter debug mode. This will turn off terminal rendering and provide performance metrics after the simulation is terminated |
-n --no-render | Do not render the simulation (debug will automatically trigger this) |
Gosper Glider Gun: glipy-cli https://conwaylife.com/patterns/gosperglidergun.rle
Cloverleaf Interchange hassled by carnival shuttles: glipy-cli https://conwaylife.com/patterns/p12cloverleafhassler.rle
Use custom colors from hex codes: glipy-cli https://conwaylife.com/patterns/387p132pattern.rle --colors "#81A1C1 #3B4252"