Thursday 27 November 2014

Conway's Game of Life

Press space to pause/unpause the simualtion. Click on the grid while paused to change cells.
Numbers 1-5 change ruleset.
 Rulesets:
1: Life 2: Seed 3: Gnarl 4: Live Free or Die 5: Amoeba
http://www.conwaylife.com/wiki/Cellular_automaton#Rules

 
 Every programmer has to make this eventually!
Conway's Game of Life is an example of cellular automata- a series of cells that form patterns by following their own discrete rules, and without any higher guidance.
Each cell can either be alive or dead, and they will change based on their neighbours- in the standard ruleset, an alive cell will die if it has fewer than 2 or greater than 3 neighbours, and a dead cell will become a live cell if it has exactly 3 neighbours.

No comments:

Post a Comment