Skip to content

Instantly share code, notes, and snippets.

@jdleo
Last active November 19, 2017 10:18
Show Gist options
  • Select an option

  • Save jdleo/081d3df3763f53651060ffc9fe70162c to your computer and use it in GitHub Desktop.

Select an option

Save jdleo/081d3df3763f53651060ffc9fe70162c to your computer and use it in GitHub Desktop.
const target = 1.41
const baseBet = 100
let bet = baseBet
let lossStreak = 0
while (true) {
const {multiplier} = await this.skip(bet,target)
if (multiplier < target) {
lossStreak++
} else {
lossStreak = 0
}
while (lossStreak >= 2) {
const {multiplier} = await this.bet(bet, target)
if (multiplier < target) {
lossStreak++
bet = bet * 3.5
bet = Math.round(bet / 100) * 100
} else {
lossStreak = 0
bet = baseBet
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment