summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChun Li <chun@bibliocommons.com>2018-07-18 17:47:26 -0400
committerChun Li <chun@bibliocommons.com>2018-07-18 17:47:26 -0400
commitf629fbb43b9d64e4bcd401941e49f5bdf8351179 (patch)
tree9a5c768c4840360191db00aba23c228a4b446192
parentd24df5d0e20a65a8f4fe5fc3ad99f9687e08ab75 (diff)
Update README. Start off randomized.
-rw-r--r--README.md2
-rw-r--r--life.js1
2 files changed, 3 insertions, 0 deletions
diff --git a/README.md b/README.md
index acaef0c..8f68879 100644
--- a/README.md
+++ b/README.md
@@ -3,3 +3,5 @@
Conway's Game of Life, implemented in Javascript using a canvas element. Isn't
it mesmerizing? :)
+
+For a demo, see <https://chunli.me/life>.
diff --git a/life.js b/life.js
index dd0f990..81077e4 100644
--- a/life.js
+++ b/life.js
@@ -18,6 +18,7 @@ var CELL_COLOR="#427df4";
// 2d array containing cells
// 0 is dead, 1 is alive
var grid = initGrid();
+randomize();
function getRandomInt(max) {
return Math.floor(Math.random() * Math.floor(max));