go-life

command module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2018 License: MIT Imports: 11 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
rle

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL