Skip to content
This repository has been archived by the owner on Apr 30, 2019. It is now read-only.
/ Game_Of_Life Public archive

Game of Life is played on a grid of square cells - like a chess board but extending infinitely in every direction.

License

Notifications You must be signed in to change notification settings

dani832m/Game_Of_Life

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Game of Life

Game of Life is played on a grid of square cells - like a chess board but extending infinitely in every direction. A cell can be live or dead.

alt text

  • A live cell is shown by putting a marker on its square.
  • A dead cell is shown by leaving the square empty.
  • Each cell in the grid has a neighbourhood consisting of the eight cells in every direction including diagonals.
  • To apply one step of the rules, we count the number of live neighbours for each cell. What happens next depends on this number.
  • A dead cell with exactly three live neighbours becomes a live cell (birth).
  • A live cell with two or three live neighbours stays alive (survival).
  • In all other cases, a cell dies or remains dead (overcrowding or loneliness).

Note: The number of live neighbours is always based on the cells before the rule was applied. In other words, we must first find all of the cells that change before changing any of them.

About

Game of Life is played on a grid of square cells - like a chess board but extending infinitely in every direction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages