From 1236ee47442db8ae469f107c4976773c5971d1c6 Mon Sep 17 00:00:00 2001 From: AUnicornWithNoLife Date: Sat, 10 Jul 2021 15:30:28 +0100 Subject: [PATCH] comments --- src/var.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/var.js b/src/var.js index 894df82..d7f7e10 100755 --- a/src/var.js +++ b/src/var.js @@ -1,3 +1,5 @@ +// initialize variables + var board; var info; var score; @@ -9,8 +11,12 @@ var root; var themesel; var dopredict; +// called when all the resources for the page have been loaded + function load() { + // asing values to variables + board = [ [ @@ -74,6 +80,8 @@ function load() setup(); } +// runs functions to get ready for game + function setup() { setupTheme();