briansmiley / CursedLife

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cursed Life

This is a basic exercise in the Curses Python module, implementing Conway's Game of Life in a console display format.

Default launch mode is draw mode.

Command line arguments:

Modes:
--draw, -dr: initializes the grid in "draw" mode, allowing moving the cursor to set intial frame
--glider, -g: places some gliders in hard coded positions
--random, -r [float]: initializes the grid with [float] proportion of cells randomly active
--spiral, -sp: initializes grid with a symmetrical spiral shape

Settings:
--speed, -s [int]: sets refresh rate to [int]ms (default 50ms)
--dimensions, -d [int] [int]: sets the height and width of the display grid; defaults to 50 x 100
--wrap, -w: turns on edge-wrapping, so that cells on the border consider those on the opposite their neighbors
--stepwise, -sw: makes the grid update only when on keypress (causes --speed to be ignored)
GlideLife.mov

Clip of some gliders

RandomLife.mov

Clip of a random grid

About


Languages

Language:Python 100.0%