gameoflife

command module
v0.0.0-...-48e963b Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

README

checkm4te conway's game of life

A game of life implementation written in Go with Raylib. I used the automata template I made to make this. Includes a editor, a GUI to set things like grid size, play pause, simulation speed, zoom, and more.

RIP John Horton Conway

install

Download the binary for your OS in releases OR do

go install github.com/checkm4ted/gameoflife

controls

  • Set Iterations Per Second with MouseWheel
  • Zoom with CTRL+MouseWheel
  • Set brush width with Shift+MouseWheel
  • Resize grid with the GUI or with Alt+MouseWheel
  • Move with middle click
  • Place cells with left click
  • Remove cells with right click
  • Toggle grid outline with G
  • Randomize grid with R
  • Clear grid with C

features

  • Zoom in/out
  • Move the camera around
  • Edit the world
  • Set brush size
  • Show/hide grid

rules

  1. Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

screenshots

image image

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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