-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
13 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
# game-of-life | ||
[Conway's Game of Life](https://en.wikipedia.org/wiki/Conway's_Game_of_Life) | ||
# [Conway's Game of Life](https://en.wikipedia.org/wiki/Conway's_Game_of_Life) | ||
|
||
run locally with: | ||
`python -m SimpleHTTPServer` | ||
# Run locally | ||
```bash | ||
python -m SimpleHTTPServer | ||
``` | ||
|
||
# Rules | ||
1. Any live cell with fewer than two live neighbours dies, as if by underpopulation. | ||
2. Any live cell with two or three live neighbours lives on to the next generation. | ||
3. Any live cell with more than three live neighbours dies, as if by overpopulation. | ||
4. Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters