Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.37 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.37 KB

Game of Life

GitHub release code style: prettier GitHub license

React implementation of John Conway's Game of Life.

game-of-life-demo

RULES

  • Any live cell with fewer than 2 live neighbors dies, as if caused by under-population.
  • Any live cell with 2 or 3 live neighbors lives on to the next generation.
  • Any live cell with more than 3 live neighbors dies, as if by overpopulation.
  • Any dead cell with exactly 3 live neighbors becomes a live cell, as if by reproduction.

DEV

  • Run app in development mode (http://localhost:5173):

    npm run dev
    
  • Build app for production and output it to the /dist folder:

    npm run build
    
  • Start local web server that serves the built solution from /dist folder for previewing:

    npm run preview