Canvas Demo 3

Aus ProgrammingWiki
Archivierte Version vom 2015-06-02T18:11:36+00:00. Aktuelle Version

The Game of Life is not your typical computer game. It is a 'cellular automaton', and was invented by Cambridge mathematician John Conway.

For a space that is 'populated':

  • Each cell with one or no neighbors dies, as if by loneliness.
  • Each cell with four or more neighbors dies, as if by overpopulation.
  • Each cell with two or three neighbors survives.

For a space that is 'empty' or 'unpopulated'

  • Each cell with three neighbors becomes populated.
Ihr Browser unterstützt Canvas nicht.