Skip to content

Instantly share code, notes, and snippets.

@ruzli
Created September 6, 2020 16:33
Show Gist options
  • Save ruzli/77092afb904f53ea8a8474b09757c12f to your computer and use it in GitHub Desktop.
Save ruzli/77092afb904f53ea8a8474b09757c12f to your computer and use it in GitHub Desktop.
Simple data gathering
var rolls = 0
var history = [];
var super_nyans = 0, nyans = 0;
while (true) {
rolls++;
const {multiplier} = await this.bet(100, 1.01);
history.push(multiplier)
if (multiplier >= 1000 && multiplier < 10000) { nyans++;}
if (multiplier >= 10000) { super_nyans++;}
for (let i = 0; i < history.length; i++){
console.log(`${rolls} : ${history[i]}`)
}
this.log(`Nonce: ${rolls} | Nyans: ${nyans} | Super Nyans: ${super_nyans}`)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment