Skip to content

leonardoalemax/life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

This is my implementation in react using react hooks of John Conway's game of life.

Each step runs a set of 3 simple rules:

  • Any live cell with fewer than two live neighbours dies, as if by underpopulation.
  • Any live cell with more than three live neighbours dies, as if by overpopulation.
  • Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction.

life

You can see it running here!

To Run It

Clone project, install the dependencies and run it.

$ yarn install
$ yarn start