Skip to content

bigaru/gameoflife

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conway's Game of Life

Rules

  • If a cell has 0-1 neighbors, it dies due to solitude.
[*][ ][ ]       [ ][ ][ ]
[ ][*][ ]   ->  [ ][ ][ ]
[ ][ ][ ]       [ ][ ][ ]
  • If a cell has 2-3 neighbors, it survives.
[*][ ][ ]       [ ][ ][ ]
[ ][*][ ]   ->  [*][*][ ]
[ ][*][ ]       [ ][ ][ ]
  • If a cell has 4 or more neighbors, it dies due to overpopulation.
[*][ ][*]       [*][ ][ ]
[*][*][ ]   ->  [*][ ][ ]
[ ][*][*]       [*][*][*]
  • If 3 neighbors are populated, then empty cell becomes populated.
[*][ ][ ]       [ ][ ][ ]
[*][ ][ ]   ->  [*][*][ ]
[ ][*][ ]       [ ][ ][ ]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages