This is a collection of implementations of Conway's game of life that are playable in the browser. These implementations include:
Below are visualizations of Conway's game of life in 3D space using Babylonjs.
The algorithm used is as follows:
- If a cell is dead with 4 alive neighbors, it becomes alive
- If a cell is alive with 5-6 alive neighbors, it stays alive
- If neither of the above are true, the cell becomes/stays dead
An oscillator in the game of life is a group of cells that repeat the same pattern over x number of generations. Below are the ones I have found.
Below are some examples with more complex behavior.
By changing the algorithm parameters, you can get less chaotic results. The examples below have more space and flat surfaces. You can see that I used a Minecraft-like texture to illustrate how one could use this to generate terrain.
Below is an example of Conway's game of life using Phaserjs. The cell structure shown below is called the glider gun, as it creates more cells that move to the bottom right.
Below is the game of life created with the HTML canvas api. You can see oscillators in the middle and the glider gun in the top left.