Play Conway's Game of Life in your terminal!
Click to expand
A Docker image is available at ghcr.io/gabe565/cli-of-life
sudo docker run --rm -it ghcr.io/gabe565/cli-of-life
Click to expand
-
If you don't have it already, install the
ca-certificates
packagesudo apt install ca-certificates
-
Add gabe565 apt repository
echo 'deb [trusted=yes] https://apt.gabe565.com /' | sudo tee /etc/apt/sources.list.d/gabe565.list
-
Update apt repositories
sudo apt update
-
Install cli-of-life
sudo apt install cli-of-life
Click to expand
-
If you don't have it already, install the
ca-certificates
packagesudo dnf install ca-certificates
-
Add gabe565 rpm repository to
/etc/yum.repos.d/gabe565.repo
[gabe565] name=gabe565 baseurl=https://rpm.gabe565.com enabled=1 gpgcheck=0
-
Install cli-of-life
sudo dnf install cli-of-life
Click to expand
Install cli-of-life-bin with your AUR helper of choice.
Click to expand
Download and run the latest release binary for your system and architecture.
Run cli-of-life
in a terminal to play.
By default, the grid will be empty, but rle/plaintext files can be loaded with cli-of-life FILE.rle
or cli-of-life https://...
For full command-line reference, see docs.
$ cli-of-life https://conwaylife.com/wiki/Gosper_glider_gun
$ cli-of-life https://conwaylife.com/wiki/Twin_bees_shuttle
$ cli-of-life https://conwaylife.com/wiki/Breeder_1
$ cli-of-life https://conwaylife.com/wiki/Replicator
See the LifeWiki for pattern files.
Key | Description |
---|---|
mouse | Place cells |
space |
Play/pause |
m |
Toggle between modes: smart, place, erase |
wasd |
Move the game board |
- /+ |
Zoom |
< /> |
Change playback speed |
esc |
Toggle menu |
t |
Tick |
ctrl+c |
Quit |