A tiny terminal toy that runs Conway's Game of Life with random per-run cell glyphs.
It can render with:
- Nerd Font icons (downloaded glyph list)
- block-style characters
- plain
x
- Auto-fits to your terminal size
- Adapts when you resize the terminal window
- Randomly picks a glyph each run cycle for visual variety
- Optional Nerd Font glyph mode with local cache at
~/.cache/nerd-life/ - Zero third-party Python dependencies
- Python 3.14+
uv- A terminal that supports ANSI escape codes
- (Optional) a Nerd Font for best results with
--icons nerd
uv run nerd_life.pyStop anytime with Ctrl+C.
uv run nerd_life.py [--icons {nerd,blocks,plain}] [--refresh-icons] [--speed SECONDS] [--density 0.0-1.0] [--iterations N]--icons: icon mode for alive cells (blocksdefault)--refresh-icons: re-download the Nerd Font glyph metadata cache--speed: seconds between frames (default:0.08)--density: initial live-cell density from0.0to1.0(default:0.3)--iterations: number of frames per cycle (default:10000, use0for endless)
Run with block characters (default):
uv run nerd_life.py --icons blocksRun forever with plain ASCII and slower updates:
uv run nerd_life.py --icons plain --iterations 0 --speed 0.12Use Nerd Font icons and refresh glyph cache first:
uv run nerd_life.py --icons nerd --refresh-icons- The grid wraps at edges (toroidal world).
- The app clears the screen and hides the cursor while running, then restores it on exit.
- Add a
--seedflag for reproducible runs - Add pattern presets (glider gun, pulsar, etc.)
- Package as an installable CLI (
pipx install ...)
MIT