From ad1e4087186dd18dd283f96b550ff79c603aa0c7 Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 27 Aug 2016 07:07:15 +0100 Subject: [PATCH] Fixed GameOfLife post --- src/pages/ConwaysGameOfLife.md | 249 ++++++++++++++++++ .../2014-07-14-conways-game-of-life.markdown | 12 +- 2 files changed, 257 insertions(+), 4 deletions(-) create mode 100644 src/pages/ConwaysGameOfLife.md diff --git a/src/pages/ConwaysGameOfLife.md b/src/pages/ConwaysGameOfLife.md new file mode 100644 index 0000000..c22a192 --- /dev/null +++ b/src/pages/ConwaysGameOfLife.md @@ -0,0 +1,249 @@ +--- +layout: page.html +title: "Conways Game Of Life" +--- + + +
+

+ Read my blog post regarding Conway's Game of Life +

+ + diff --git a/src/posts/2014-07-14-conways-game-of-life.markdown b/src/posts/2014-07-14-conways-game-of-life.markdown index c8c3922..3120a94 100644 --- a/src/posts/2014-07-14-conways-game-of-life.markdown +++ b/src/posts/2014-07-14-conways-game-of-life.markdown @@ -18,9 +18,13 @@ Conway's Game of Life is a 0-player turn based simulation of life. The "game" fo The rules of the game are as follows:
+ * Any live cell with fewer than two live neighbours dies, as if caused by under-population. + * Any live cell with two or three live neighbours lives on to the next generation. + * Any live cell with more than three live neighbours dies, as if by overcrowding. + * Any dead cell with exactly three live neighbours becomes a live cell, as if by reproduction. Wikipedia - http://en.wikipedia.org/wiki/Conway's_Game_of_Life @@ -67,8 +71,8 @@ This is the approach I used last night. I have struggled on effectively calculat # Final Code
- -![Conway's Game of Life]({{ site.url }}/images/conways-game-of-life.PNG) + + Conway's Game of Life
They LIVE!!!
@@ -178,7 +182,7 @@ init(); -You can check out the [final version](/ConwaysGameOfLife.html) or take a look at the [gist](https://gist.github.com/AverageMarcus/f5e34825ef89e11443be). +You can check out the [final version](/Conways-Game-Of-Life) or take a look at the [gist](https://gist.github.com/AverageMarcus/f5e34825ef89e11443be). As always, if you have any comments . @@ -309,4 +313,4 @@ function countNeighbours(cell){ } init(); - \ No newline at end of file +