Terminal based Conway's Game of Life. Implemented in Go.
Branch: master
Clone or download
Latest commit 2a47837 Nov 7, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
format Compare with nil Nov 6, 2018
preset Add preset Oct 31, 2018
LICENSE Add license Oct 21, 2018
Makefile Enable to parse multiple format Nov 6, 2018
README.md Update version & README Nov 6, 2018
board.go Add input function Oct 27, 2018
cell.go Enable to resize Oct 20, 2018
consts.go Refactoring Oct 26, 2018
event.go Refactoring Oct 26, 2018
game.go Refactoring Oct 26, 2018
go.mod go mod tidy Nov 6, 2018
go.sum go mod tidy Nov 6, 2018
input.go Add input function Oct 27, 2018
main.go Update version & README Nov 6, 2018
theme.go Enable to select theme by flag Oct 29, 2018

README.md

go-life

Terminal based Conway's Game of Life. Implemented in Go.

demo

Features

  • Run on your terminal!
  • Insert pattern from presets
  • Color themes
  • Mouse editing

Install

Binary

Go to release page and download.

$ wget https://github.com/sachaos/go-life/releases/download/v0.4.0/go-life_darwin_amd64 -O /usr/local/bin/go-life
$ chmod +x /usr/local/bin/go-life

Manually Build

You need go version 1.11.

$ git clone https://github.com/sachaos/go-life.git
$ make install

How to use

Start

$ go-life

Set pattern & theme

$ go-life --theme Ocean --pattern glider-gun

Load pattern

Load from STDIN

$ curl http://www.conwaylife.com/patterns/glider.rle | go-life --file -

Load from file

$ go-life --theme Ocean --file ./glider.lif

Help

$ go-life --help

Keymap

SPC: stop
Enter: step
c: clear
r: random
h: hide this message & status
p: switch preset
t: switch theme
LeftClick: switch state
RightClick: insert preset