Game Of Life
Game rules:
- Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
- Any live cell with more than three live neighbours dies, as if by overcrowding.
- Any live cell with two or three live neighbours lives on to the next generation.
- Any dead cell with exactly three live neighbours becomes a live cell
You may need to click it to get keyboard focus:)
How to play:
- Click a cell to kill or give birth to it.
- Press ‘c’ to clear cells.
- Press ‘r’ to randomize cells.
- Press ‘d’ to generate glider gun pattern.
- Press ‘g’ to run.
- Press ’s’ to run by step.
- Press ‘p’ to pause.
Made with Processing
HTML Code:
<applet code=GameOfLife.class archive=”http://www.floatingvectors.com/blog/wp-content/uploads/2009/09/GameOfLife.jar” width=601 height=361></applet>
Reference: