Sha256: cb8570cca3ed7a5e9ac557842c834a90c2c62efab8933b89787de51118ec3101
Contents?: true
Size: 672 Bytes
Versions: 60
Compression:
Stored size: 672 Bytes
Contents
John Conway's Game of Life The Rules --------- The Game of Life was invented by John Conway (as you might have gathered). The game is played on a field of cells, each of which has eight neighbors (adjacent cells). A cell is either occupied (by an organism) or not. The rules for deriving a generation from the previous one are these: Survival -------- If an occupied cell has 2 or 3 neighbors, the organism survives to the next generation. Death ----- If an occupied cell has 0, 1, 4, 5, 6, 7, or 8 occupied neighbors, the organism dies (0, 1: of loneliness; 4 thru 8: of overcrowding). Birth ----- If an unoccupied cell has 3 occupied neighbors, it becomes occupied.
Version data entries
60 entries across 60 versions & 11 rubygems