skogsbrus / game-of-life

Conway's game of life

Home Page:https://johan-andersson01.github.io/game-of-life/index.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Game of Life

Devised by John Conway in 1970, The Game of Life is a cellular automaton.

The game is initialized with a random number of alive cells. After this initialization, the game requires no input as its state depends entirely on its previous state. (The process is therefore entirely deterministic, given an initial state)

The game follows 4 rules:

  1. Any live cell with fewer than two live neighbours dies, as if caused by underpopulation.
  2. Any live cell with two or three live neighbours lives on to the next generation.
  3. Any live cell with more than three live neighbours dies, as if by overpopulation.
  4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

The game state is represented by a round. Each round, these rules are evaluated based on the state of the previous round. The current round's state is set as described by the rules. The game then continues until no evolution is possible (until the state is static).

See Wikipedia for more information.

About

Conway's game of life

https://johan-andersson01.github.io/game-of-life/index.html


Languages

Language:JavaScript 92.7%Language:HTML 4.2%Language:CSS 3.1%