Jonathan. Frech’s WebBlog

Conway’s Game of Life (#104)

Jonathan Frech,

This pro­gram is a simulation of the famous cellular automaton created by John Conway. The so-called “game” is rather a simulated evo­lu­tion of cells in a two-di­men­sion­al world. Each cell can ei­ther be dead (black) or alive (white) and al­ways has eight neighbours surrounding them. In each cycle of the simulation their state will be changed based on two simple rules, which are listed below.
De­spite the rule’s simplicity, the outcomes are often very interesting and complex.
For more details on the game of life, check this Wiki­pe­dia entry.

The Rules

Controls

Source code: conways-game-of-life.py