Last active
October 29, 2023 15:42
-
-
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.
This file contains hidden or 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 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