Conway's Game of Life is a cellular automaton created by John Conway in 1970.  This implementation of the Game of Life is a wrapped square grid of cells (which forms a torus).  Each cell is either alive or dead.  Every cell interacts with its eight neighbors.  The cells adhere to the following rules:

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

See https://en.wikipedia.org/wiki/Conway's_Game_of_Life


Controls:

  • Left click on a location (cell) to toggle the cell between dead and alive
  • Hit space to pause and play

Comments

Log in with itch.io to leave a comment.

(+1)

I wanna try to make this one day! it seems complex tho

Nice, you should try! The rules that govern the cells aren't too complex to implement. The biggest hurdle is probably creating the grid.

(+1)

i might create non-grid version, with vector graphics... more artistic looking 😅

(+1)

That would be cool!