README.md

July 9, 2025 · View on GitHub

cellscape

Terminal-based cellular automata playground


Features

  • Includes Eight classic cellular automata
  • Beautiful TUI navigation menu
  • Real-time speed control with up/down arrow keys
  • Focus mode for distraction-free fullscreen viewing
  • Monochrome toggle for terminal theme compatibility
  • Generation-based coloring creating trippy wave effects

Supported Automata

AutomatonDescriptionAlias
Conway's Game of LifeThe classic cellular automaton with simple rules creating complex patternslife
Brian's Brain3-state automaton with beautiful trailing patternsbrain
Langton's AntSimple ant following two rules creating emergent complexityant
Larger than LifeGeneralized Game of Life with extended neighborhoodsltl
Belousov-ZhabotinskyChemical reaction simulation with spiral wavesbelousov
FadersMulti-state cells that fade through colors before dyingfaders
Forest FireTrees grow, catch fire, and burn in natural cyclesforest
WildfireStochastic fire spread through vegetationwildfire

Installation

Via go install

go install github.com/ashish0kumar/cellscape@latest

Build from Source

git clone https://github.com/ashish0kumar/cellscape.git
cd cellscape
go mod tidy
go build
sudo mv cellscape /usr/local/bin/
cellscape --help

Usage

Interactive Menu

cellscape

Direct Automaton Launch

cellscape run life
cellscape run brain -m -f
cellscape run belousov --focus --monochrome

Available keywords: life, brain, ant, ltl, belousov, faders, forest, wildfire

Key Bindings

KeyAction
SpacePause / resume simulation
/ kIncrease speed (max 10)
/ jDecrease speed (min 1)
sSingle-step while paused
fToggle focus mode
cToggle monochrome / color
rReset current automaton
q / EscReturn to menu (or exit)

Configuration

Command Line Options

  • --monochrome, -m - Start in monochrome mode
  • --focus, -f - Start in focus mode (fullscreen, no UI)

Visual Modes

  • Colorful Mode: Generation-based rainbow coloring with wave effects
  • Monochrome Mode: Clean grayscale using ANSI terminal colors
  • Focus Mode: Fullscreen grid with no status bars or help text

Dependencies

Contributing

Contributions are welcome! Please feel free to open an issue or submit a pull request.


© 2025-present Ashish Kumar

LICENSE