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