Skip to content

A front end for visualizing Conway's Game of Life simulations using GLiPy

License

Notifications You must be signed in to change notification settings

noprobelm/glipy-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GliPy-cli

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.

Features

  • 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

Command Line Options

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)

Examples

Random Conway Soup: glipy-cli Random Conway Simulation

Gosper Glider Gun: glipy-cli https://conwaylife.com/patterns/gosperglidergun.rle Gosper Glider Gun

Cloverleaf Interchange hassled by carnival shuttles: glipy-cli https://conwaylife.com/patterns/p12cloverleafhassler.rle Cloverleaf Hassler

Use custom colors from hex codes: glipy-cli https://conwaylife.com/patterns/387p132pattern.rle --colors "#81A1C1 #3B4252" 387p132

About

A front end for visualizing Conway's Game of Life simulations using GLiPy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages