From 47df17b1cb78733cff561769486dc9b164dc015a Mon Sep 17 00:00:00 2001 From: awalias Date: Sun, 14 Jun 2020 03:18:15 +0800 Subject: [PATCH] update readme and add github link --- README.md | 15 +++++++++++---- index.html | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 059e8ab..9219afb 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/index.html b/index.html index e04b110..c0fca78 100644 --- a/index.html +++ b/index.html @@ -36,7 +36,8 @@