Compare commits

...

1 Commits

Author SHA1 Message Date
Geometer1729 7e6807c787
make count more interesting 4 years ago
  1. 9
      main.js

9
main.js

@ -26,10 +26,15 @@ function checkCounting(text) {
return false;
}
if(n == prevInt+1) {
if(prevInt % 37 = 0){
increment = 1;
}else{
increment = 2;
}
var newjson = {
"prevInt" : n+1
"prevInt" : n+increment
}
fs.writeFile("counting.json",JSON.stringify(newjson),'utf-8',() => console.log("New count: " + (n+1)))
fs.writeFile("counting.json",JSON.stringify(newjson),'utf-8',() => console.log("New count: " + (n+increment)))
prevInt = n
return true;
}

Loading…
Cancel
Save