Skip to content

tui-apps/life

Repository files navigation

life

Conway's Game of Life, animated in your terminal.

life running a random soup

Gosper glider gun

a Gosper glider gun emitting gliders

Run

go run .

Or build a binary with go build -o life . and run ./life.

Usage

The board starts on a random soup and evolves on its own. Press space to play or pause, and n to advance one generation while paused. Press r for a fresh random board or g to load a Gosper glider gun. Press c to clear the board. Use + and - to change the speed, and q to quit.

The board wraps at the edges, so patterns that run off one side reappear on the other. Each character cell stacks two board cells with half-block glyphs, which keeps the cells roughly square.

License and contributing

Licensed under the MIT License (see LICENSE). Contributions are welcome; see CONTRIBUTING.md.

Citation

If you use this project, please cite it. A machine-readable CITATION.cff is included; expand below for a BibTeX entry.

BibTeX
@software{Vulpes_life_2026,
  author  = {Vulpes, Aesthetic},
  title   = {life},
  year    = {2026},
  month   = jul,
  version = {0.1.0},
  url     = {https://github.com/tui-apps/life}
}

Related

Part of the tui-apps collection

Six small, single-purpose terminal apps.

App What it does
calc live calculator
algebra-visual function grapher
classical-ciphers cipher encoder and decoder
crypto-charts crypto price charts
totp TOTP authenticator
life Conway's Game of Life (this repo)