Skip to content

A implementation of Conway's game of life written in Go with Raylib. Editor, and more

License

Notifications You must be signed in to change notification settings

jxqu3/gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A implementation of Conway's game of life written in Go with Raylib. Editor, and more

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages