For more information on John Conway's Game of Life, see the wikipedia entry
- Any live cell with fewer than two live neighbors dies, as if caused by under-population.
- Any live cell with two or three live neighbors lives on to the next generation.
- Any live cell with more than three live neighbors dies, as if by overcrowding.
- Any dead cell with exactly three live neighbors becomes a live cell, as if by reproduction.
This code allows any <div>
within a web page to become a dedicated Game of Life construct. By using Jquery to assign a <div>
element in HTML to the Game of Life program, any grid, of any size, with specified cell sizes, can then become a simulation of the Game of Life.
This is now a Jquery plugin that allows for the assignment of any <div>
to act as a game of life simulation. The size of the game itself, as well as the size of the individual cells can now be specified. Additionally, particularly patterns of interest like those found at catagolue.appspot.com
This code is operating at http://russellbits.com/labs/GameOfLife
- Multiple simulations currently run concurrently; they should run independently.
- Animations for individual cells with a setting for animation true or false
- Themes—stylesheets that give different looking boards
- Remove Jquery dependency.
Separate command functions out from GOL simulation itselfMake it so that any div can have GOL attached to it and the default is no controls, just some basic randomized patterns that repeatThe ability to insert particular organisms via multidimensional arraysObject config you can insert into GOL, like cell size vs board size