Skip to content
This repository has been archived by the owner on Sep 8, 2023. It is now read-only.

andreyluiz/game-of-life

Repository files navigation

DEPRECATION WARNING

This version of game-of-life is deprecated. Current maintenance is being made on the project andreyluiz/game-of-life-on-svelte. That version is much faster and has new features.

John Conway's Game of Life

In 1970 a young matematician called John Conway created what he named Game of Life. It consists in a two dimensional board filled with cells (like a chess board) that can extend to infinity.

Each cell may be dead (white) or alive (black) an can have 8 neighbors at maximum (top, bottom, left, right and diagonals).

Time in this universe runs gradually by steps. And in each step, the cell can live, reborn or die based on three rules (or laws):

  1. If the cell is alive and have 2 or 3 alive neighbors, it lives.
  2. If the cell is dead but have exactly 3 neighbors, it reborns.
  3. In any other condition the cell dies.

Simulator

Head to this page.

Custom rules

In this version of Game of Life you can customize the rules. Try different combinations and see what you can create.

Technology

This application was created with React + Redux.

License

MIT.