All examples By author By category About

NPashaP

Conway's Game of Life

Conway's Game of life is a Cellular automata. The universe is an infinite two dimensional orthogonal grid consisting of square cells. At any given time each cell is either alive or dead. As time progresses discretely, the status of each cell is determined by the number of live cells in the 8 most adjacent squares of the cell.

Let n(x) be the number of lives cells in the 8 most adjacent squares of square x at time t. As time moves to t+1

In this implementation you can do the following: