Geometer1729
3 years ago
No known key found for this signature in database
GPG Key ID: FA41E6E8CED5E58A
1 changed files with
7 additions and
2 deletions
-
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; |
|
|
|
} |
|
|
|