Skip to content

Latest commit

 

History

History
executable file
·
27 lines (18 loc) · 1.03 KB

README.md

File metadata and controls

executable file
·
27 lines (18 loc) · 1.03 KB

React Game of Life

Game of Life is a cellular automaton devised by mathematician John Conway.

In the game there exists a grid of cells, each of which can be in one of two states, alive or dead. Every cell has eight neighbours which it interacts with (the adjacent cells). After each step in the game, the following rules apply:

  1. Any live cell with fewer than two live neighbours dies, i.e. under population
  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, i.e. overpopulation
  4. Any dead cell with exactly three live neighbours becomes a live cell, i.e. reproduction

See Wikipedia for more information on The Game of Life.

Running Locally

To view locally, run:

npm install
npm start

Then open http://localhost:3000/.

This project was bootstrapped with Create React App.

img