Controls
Press the button that says "paused" to start the simulation! The grid cannot be edited while the simulation is running.- Press spacebar to toggle whether simulation is running or paused
- Press the right arrow key to advance the simulation one step while paused
- Press the up arrow key to make the simulation slower
- Press the down arrow key to make the simulation faster
- Left click to toggle a cell on or off
- Left click and drag to draw a line of cells
- Middle click on the canvas to pan around
- Right click and drag to select a portion of the grid to copy
- Left click with the copy to place it on the grid
- Right click once to empty the clipboard
On the left of the game window, there is a list of buttons. Click one to copy a schematic to your clipboard! 📋
The canvas is infinite, at least until your computer runs out of memory or crashes 🙂. If the game runs out of memory, it will pause the game.
What is this?
This is an implementation of Conway's Game of Life. It's a zero player game, where you set up some initial conditions, press play, and then sit back and watch what happens.
In Conway's Game of Life, there is a grid that cells live on. A cell lives and dies by the following rules:
- If a cell has 2 or 3 neighbors, they keep on living 🙂
- If a spot on the grid is empty and has 3 neighbors, a new cell is created 🐣
- If a cell has 1 or 0 neighbors, they die of loneliness ⚰️
- If a cell has more than 3 neighbors, they die of overcrowding ⚰️
Where is the source for this?
You can find the source code for this on GitHub, right here. 🙂