From 76aaeab8403c605d12080ac7539ba4e463fc09fe Mon Sep 17 00:00:00 2001 From: jcolebrand Date: Thu, 26 Dec 2019 19:06:28 -0600 Subject: [PATCH] Update script name in preparation of working on issue #1 --- index.html | 4 ++-- script.js => phrases.js | 9 +-------- 2 files changed, 3 insertions(+), 10 deletions(-) rename script.js => phrases.js (97%) diff --git a/index.html b/index.html index fd9deeb..6b8fee2 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + Christmas Lights Bingo Card @@ -89,6 +89,6 @@ - + \ No newline at end of file diff --git a/script.js b/phrases.js similarity index 97% rename from script.js rename to phrases.js index 3b7ff56..898e85f 100644 --- a/script.js +++ b/phrases.js @@ -1,11 +1,4 @@ -let phrases = [ - {phrase:'test',multiple:false}, - {phrase:'what', multiple: true} -]; - -//15/6/3 -> list -> randomize - -// fischer yates shuffle +// fischer yates shuffle function shuffle(array) { for (let i = array.length - 1; i > 0; i--) { let j = Math.floor(Math.random() * (i + 1));