life

command module
v0.0.0-...-4d2f849 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 6 Imported by: 0

README

life

Conway's game of life

Demo

https://youtu.be/t-MSh_uau9A

docker pull eozgit/life
docker run --rm --tty --interactive --publish 8080:8080 --name life eozgit/life
Hotkeys
Key Function
h Display help
1 - 9 Set game speed
r + 1 - 9 Reset game with selected initial population density
t + 1 Select black & white theme
t + 2 Select CGA theme*
t + 3 Select earth theme
t + 4 Select dune theme
LMB Resurrect cell
z + LMB Resurrect block
x + LMB Create glider
c + LMB Create light-weight spaceship
v + LMB Create middle-weight spaceship
b + LMB Create heavy-weight spaceship

* When CGA theme is selected cells updated on last iteration will be highlighted showing the active areas subject to potential update next turn


Docker repo

https://hub.docker.com/r/eozgit/life


Docker
Build
docker build --tag eozgit/life:latest --tag eozgit/life:YYMMDD .
Push
docker image push eozgit/life --all-tags
Go
Run
go run .
Wasm
wasmserve ./

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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