Skip to content

adam-zielonka/game-of-life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Game of Life

Implementation of Conway's Game of Life.

Warning

This application may potentially trigger seizures for people with photosensitive epilepsy. Viewer discretion is advised.

Run the simulation

You can run this implementation on adam-zielonka.github.io/game-of-life.

Rules

  1. Cells have two states: live and dead.
  2. Cells interact with 8 neighbors.
  3. Live cells with less than 2 neighbors dies.
  4. Live cells with more than 3 neighbors dies.
  5. Live cells with 2 or 3 neighbors stay alive.
  6. Dead cells with 3 neighbors become live.