Skip to content

Commit

Permalink
update readme and add github link
Browse files Browse the repository at this point in the history
  • Loading branch information
awalias committed Jun 13, 2020
1 parent e39ee8d commit 47df17b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
15 changes: 11 additions & 4 deletions README.md
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.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
<div class="containter">
<div class="section">
<button id='step'>Step</button><button id='run'>Run</button><button id='clear'>Clear</button>
<a target='_blank' href='https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns'>Pattern Examples</a>
<a target='_blank' style='margin-left: 15px;' href='https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns'>Pattern Examples</a>
<a target='_blank' style='margin-left: 15px;' href='https://github.com/awalias/game-of-life'>Github</a>
</div>
<div class="section">
<canvas width='1000' height='600' id='mycanvas'></canvas>
Expand Down

0 comments on commit 47df17b

Please sign in to comment.