Last active
January 19, 2020 22:34
-
-
Save ruzli/a5fa12e541d68309634c3655b221c72c to your computer and use it in GitHub Desktop.
nyan_data_gathering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var basebet = 100 | |
var target = 1000 | |
var seek = 1000 | |
var resetSeedEach = 500 | |
var rolls = 0; | |
var total_rolls = 0; | |
var resetSeedCounter = 0; | |
var seekFound = 0; | |
var seekFoundTotal = 0; | |
var seekFoundMax = 0; | |
var seedFlagged = 0; | |
while(true){ | |
rolls++; | |
total_rolls++; | |
changeSeed(this) | |
const {multiplier} = await this.bet(basebet, target); | |
if (multiplier >= seek){ | |
seekFound++; | |
if (seekFound >= seekFoundMax){ | |
seekFoundMax = seekFound | |
} | |
} | |
this.clearLog() | |
this.log(`${seek}x seen in current seed ${seekFound} times, total seen ${seekFoundTotal} times in ${total_rolls}`) | |
this.log(`Seed will drop in ${rolls}/${resetSeedEach} rolls, total seed's was dropped ${resetSeedCounter} times`) | |
this.log(`Seen at least one time ${seek}x in ${seedFlagged}/${resetSeedCounter} scanned seed's, in one seed highest amount of ${seek}x was ${seekFoundMax} in single seed`) | |
} | |
async function changeSeed(context) { | |
if (rolls >= resetSeedEach){ | |
rolls = 0 | |
resetSeedCounter++; | |
seekFoundTotal += seekFound; | |
if (seekFound > 0) { | |
seedFlagged += 1; | |
} | |
seekFound = 0; | |
await context.newSeedPair() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment