Conway's Game of Life

Written 09:04 am 7/4/2012 Modifed 06:57 pm 7/18/2012

Conway's Game of Life is a very basic artificial life simulator. It arranges a grid of dead or alive cells, and for each generation, applies a set of rules to determine if the cell will be dead or alive.

The rules are as follows:

  1. If the cell is alive and has more than three neighbors, it dies from overcrowding.
  2. If the cell is alive and has less than two neighbors, it dies from loneliness.
  3. If the cell is dead, but has three living neighbors, it becomes alive.
  4. All other cells retain their state.

This specific implementation treats the board as a toroid. That means that the board can be thought of as extending from the bottom to the top, and from left to the right (and vice versa)- think pacman.

I have the board colorized so that any dead cells with three neighbors are tinted light blue, any alive cells with two or three neighbors are blue, any other alive cells are dark gray, and any other dead cells are pure white. The darkness of the border reflects how many neighbors the cell has.

To change the cell state, click on it.

Posted by mksInrKDUhdNJVy on January 11th, 2023, 7:54 am Reply

sepUVKbGYq

Posted by dTBqMfvwQkLonGr on January 11th, 2023, 7:54 am Reply

BdQJptYAoC

Posted by Leupoldrkw on January 8th, 2023, 3:31 pm Reply

collection of poems composed

Posted by Visiontuj on January 2nd, 2023, 3:24 am Reply

text carrier and protective

Posted by Batteriesbyf on December 27th, 2022, 3:08 pm Reply

One of the most skilled calligraphers

Posted by Sunburstssz on December 26th, 2022, 1:27 pm Reply

elements (case, binding).

Posted by Artisanhhj on December 15th, 2022, 2:19 am Reply

Libraries of the Carolingian era). IN

Posted by Carpetysn on December 12th, 2022, 2:07 pm Reply

book about the chess of love ", created by

Posted by RainMachinepho on December 4th, 2022, 7:53 pm Reply

commonly associated with

Posted by ACBeoxNlawZh on December 1st, 2022, 12:25 pm Reply

SagHbOEk

Posted by EuWqpScIf on December 1st, 2022, 12:25 pm Reply

RPxdaAif