Skip to content

Instantly share code, notes, and snippets.

@dsetzer
Last active October 29, 2023 15:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dsetzer/9d852671065d5129ccd111c388c76756 to your computer and use it in GitHub Desktop.
Save dsetzer/9d852671065d5129ccd111c388c76756 to your computer and use it in GitHub Desktop.
Simple script I made for bustadice. It bets on 2x, doubles the bet amount on a loss and divides the bet by 4 if it's greater than 8 times the base bet otherwise by 2. It's not a set&forget script, it's risky but more profitable than plain martingale and it's manageable at a slow bet speed.
var config = {
baseBet: { type: 'balance', label: 'Base Bet', value: 128},
betSpeed: { type: 'number', label: 'Bet Speed', value: 800},
maxBet: { type: 'balance', label: 'Max Bet', value: 10000 }
}
Object.entries(config).forEach(c => window[c[0]] = c[1].value);
var s = t => new Promise(r => setTimeout(r, t));
for(let b = baseBet; ;b=Math.max(baseBet, b)){
if (b > maxBet) break;
await this.bet(Math.round(b / 100) * 100, 2).then(r => {
b = r.multiplier >= r.target ? b / (b > baseBet * 8 ? 4 : 2) : b * 2;
}).then(() => s(betSpeed));
}
// Copyright © 2020 Daniel Setzer. All rights reserved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment