Skip to content

aristella/the-game-of-life

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The Game of Life

Algorithm

If any live cell has

  • fewer than 2 live neighbors then the cell dies (under-population)
  • 2 or 3 live neighbors then the cell lives
  • more than 3 live neighbors then the cell dies (overcrowding)

If any dead cell has

  • exactly three live neighbors then the cell becomes a live cell (reproduction)

Note: Neighbors are considered also diagonal cells (one cell has 8 neighbors)

About

The Game of Life

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 83.1%
  • HTML 9.1%
  • CSS 7.8%