Skip to content

Instantly share code, notes, and snippets.

@dsetzer
Last active November 17, 2021 22:37
Show Gist options
  • Save dsetzer/11ec9895e0452fbc15427759f5cae518 to your computer and use it in GitHub Desktop.
Save dsetzer/11ec9895e0452fbc15427759f5cae518 to your computer and use it in GitHub Desktop.
climb v2 script for bustadice and bustabit
var config = { c: { label: 'Base Bet', type: 'balance', value: 500 } };
let c = config.c.value, t = 1.1, b = 1.006, m = 1.005, a = c, d = t, h = 100;
engine.on('GAME_ENDED', () => { let r = engine.history.first(); (r.cashedAt) ? (c = a, t = d) : (t += m, c *= b) });
engine.on('GAME_STARTING', () => { engine.bet(Math.round(c / h) * h, t)});
/* Climb V2 (bustabit) */
var config = { c: { label: 'Base Bet', type: 'balance', value: 500 }};
let c = config.c.value, t = 1.1, b = 1.006, m = 1.005, a = c, d = t, h = 100;
for(;;){let r = await this.bet(Math.round(c / h) * h, t); (r.multiplier < t) ? (t += m, c *= b) : (c = a, t = d)}
/* Climb V2 (bustadice) */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment