Skip to content

janeyuhwian/life

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 77.0%
  • CSS 17.3%
  • HTML 3.1%
  • Shell 2.6%