Browse Source

make count more interesting

master
Geometer1729 4 years ago
parent
commit
7e6807c787
No known key found for this signature in database GPG Key ID: FA41E6E8CED5E58A
  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