add randomize flag
This commit is contained in:
parent
ab877ff35b
commit
c4a5e80046
11
index.js
11
index.js
@ -7,6 +7,7 @@ let waux = 10;
|
|||||||
let haux = 10;
|
let haux = 10;
|
||||||
let x = "✔";
|
let x = "✔";
|
||||||
let o = "⬤";
|
let o = "⬤";
|
||||||
|
let randomize = true;
|
||||||
let lauxgrid = new Array(w);
|
let lauxgrid = new Array(w);
|
||||||
let rauxgrid = new Array(w);
|
let rauxgrid = new Array(w);
|
||||||
//Write arrays to html
|
//Write arrays to html
|
||||||
@ -99,10 +100,12 @@ function randomizeaux(){
|
|||||||
function main() {
|
function main() {
|
||||||
inittable();
|
inittable();
|
||||||
initauxtable();
|
initauxtable();
|
||||||
randomizetable();
|
if (randomize) {
|
||||||
writegrid();
|
randomizetable();
|
||||||
randomizeaux();
|
writegrid();
|
||||||
writeauxgrid();
|
randomizeaux();
|
||||||
|
writeauxgrid();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user