This commit is contained in:
silas
2018-07-11 20:51:55 +02:00
parent 50783c6ff2
commit 31691c465b
6 changed files with 28 additions and 3 deletions

View File

@@ -3834,6 +3834,18 @@ class LevelSite extends AbstractSite$1 {
}
onConstruct(args) {
let a0 = -1;
let a1 = 1;
for(let i = 0; i < 10; i++)
{
let tmp = 3*a1-2*a0;
console.log("reg", i+2, tmp);
console.log("other", i+2, Math.pow(2, i+3)-3);
a0=a1;
a1=tmp;
}
this.levelCounter = Helper.nonNull(localStorage.getItem("levelCounter"), 1);
return super.onConstruct(args);
}