diff --git a/src/ai.js b/src/ai.js new file mode 100644 index 0000000..8d5aeba --- /dev/null +++ b/src/ai.js @@ -0,0 +1,4 @@ +function predict() +{ + +} \ No newline at end of file diff --git a/src/code.js b/src/code.js index 7b49934..f3410f1 100644 --- a/src/code.js +++ b/src/code.js @@ -155,4 +155,14 @@ function reset() tabloid.classList.remove('win'); tabloid.classList.remove('lol'); +} + +function mode(id) +{ + if (id != gamemode) + { + gamemode = id; + + reset(); + } } \ No newline at end of file diff --git a/src/index.html b/src/index.html index 917af59..283c022 100644 --- a/src/index.html +++ b/src/index.html @@ -17,6 +17,17 @@ + + + +
+

Gamemode

+
+
+ + +
+
diff --git a/src/var.js b/src/var.js index 62b08ec..4558877 100644 --- a/src/var.js +++ b/src/var.js @@ -4,6 +4,7 @@ var score; var ids; var ptm; var tabloid; +var gamemode; function load() { @@ -56,4 +57,6 @@ function load() ptm = 1; tabloid = document.getElementById('board'); + + gamemode = 1; } \ No newline at end of file