Press the spacebar or click the Running/Stopped button to start and stop the simulation. Change the Delay slider to slow down or speed up the simulation. Click [Random] to fill the board with random cells or click [Clear] to empty it. When the simulation is stopped, you can draw your own patterns by clicking in the cells. Hint: Glider! [x][x][x] [ ][ ][x] [ ][x][ ] The board is rendered with Pen commands, and the state is stored in two lists; one for the current state of all cells and one for the "next" state of all cells.
Conway's Life is a famous "cellular automata" simulation. Each "round", each cell either turns on ("alive") or off ("dead") according to the following rules: * If a cell has 3 "alive" neighbors it turns on * If a cell has 2 "alive" neighbors and it's already on, it stays on * Otherwise it turns off Learn more at http://en.wikipedia.org/wiki/Conway's_Game_of_Life