-
-
Save BitChop/fca562786fa34b4a2f82c4ead13e5b86 to your computer and use it in GitHub Desktop.
bustadice script
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
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