/cgl

Conways Game of Life in ASCII

Primary LanguageGoMIT LicenseMIT

Conway's Game of Life

in ASCII

visualization

by: Luciano Remes

Terminal based ASCII simulation

Requirements:

  • Golang version >= go1.22 linux/amd64

Usage:

  1. git clone https://github.com/Cybergenik/cgt && cd cgt
  2. go run .
Map Editor key bindings:
  • Left-MB: draw
  • Right-MB: erase
  • SPACE: fill map with a preset (hjkl/←↓↑→, Enter, Backspace)
  • BACKSPACE: clear map
  • ENTER: draw life!
Simulation key bindings:
  • SPACE: Pause the game state and go back to Map Editor
  • BACKSPACE: Clear the map and go back to Map Editor

Esc/Ctrl-C to exit

Run with DEFAULT=1 to set a default screen size of 160x66