Skip to content

Instantly share code, notes, and snippets.

@BitChop
Forked from dsetzer/flat-v1.3.js
Created August 18, 2019 04:10
Show Gist options
  • Save BitChop/fca562786fa34b4a2f82c4ead13e5b86 to your computer and use it in GitHub Desktop.
Save BitChop/fca562786fa34b4a2f82c4ead13e5b86 to your computer and use it in GitHub Desktop.
bustadice script
const baseBet = 50;
const basePayout = 5;
const baseMulti = 1.2;
const postBet = 1;
let currentBet = baseBet;
let startBal = this.balance;
let prevBal = this.balance;
while(true){
prevBal = this.balance;
const { multiplier } = await this.bet(Math.max(100, Math.round(currentBet / 100) * 100), basePayout)
if(multiplier < basePayout){
startBal -= (currentBet * postBet);
currentBet *= baseMulti
startBal += (currentBet * postBet);
}
if(this.balance >= startBal && prevBal < startBal){
currentBet = baseBet
startBal = this.balance;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment