Death | If an occupied cell has 0, 1, 4, 5, 6, 7, or 8 occupied neighbors, the
organism dies (0, 1 neighbors: of loneliness; 4 thru 8: of overcrowding). |
---|---|
Survival | If an occupied cell has two or three neighbors, the organism survives to the next generation. |
Birth | If an unoccupied cell has three occupied neighbors, it becomes occupied. |
C language implementation of the algorithm as a solution to a homework problem. Formerly found at http://babbage.sosu.edu/cs/courses/cs2123/solutions/chap5-18.txt.
Java implementation of the game. Much cooler than mine.
Another Java implementation of the game. Also much cooler than mine.
If you go to a search engine like AltaVista and issue a query such as john conway game life scientific american, you should find lots of stuff (including the three references above).