randomize periodically
This commit is contained in:
12
index.js
12
index.js
@ -97,14 +97,18 @@ function randomizeaux(){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function randomizeall(){
|
||||||
|
randomizetable();
|
||||||
|
writegrid();
|
||||||
|
randomizeaux();
|
||||||
|
writeauxgrid();
|
||||||
|
}
|
||||||
|
|
||||||
function main() {
|
function main() {
|
||||||
inittable();
|
inittable();
|
||||||
initauxtable();
|
initauxtable();
|
||||||
if (randomize) {
|
if (randomize) {
|
||||||
randomizetable();
|
setInterval(randomizeall, 100);
|
||||||
writegrid();
|
|
||||||
randomizeaux();
|
|
||||||
writeauxgrid();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user