changelog shortlog tags changeset manifest revisions annotate raw

vendor/plugins/rspec/examples/stories/game-of-life/README.txt

changeset 15: 64acf98d15f4
author: moriq@moriq.com
date: Mon Mar 10 10:12:58 2008 +0900 (16 years ago)
permissions: -rw-r--r--
description: add plugins rspec
1John Conway's Game of Life
2
3The Rules
4---------
5The Game of Life was invented by John Conway (as you might have gathered).
6The game is played on a field of cells, each of which has eight neighbors (adjacent cells).
7A cell is either occupied (by an organism) or not.
8The rules for deriving a generation from the previous one are these:
9
10Survival
11--------
12If an occupied cell has 2 or 3 neighbors, the organism survives to the next generation.
13
14Death
15-----
16If an occupied cell has 0, 1, 4, 5, 6, 7, or 8 occupied neighbors, the organism dies
17(0, 1: of loneliness; 4 thru 8: of overcrowding).
18
19Birth
20-----
21If an unoccupied cell has 3 occupied neighbors, it becomes occupied.