Skip to content

Instantly share code, notes, and snippets.

@ruzli
Created September 1, 2018 20:06
Show Gist options
  • Save ruzli/ae154d571c01dc38f5c6d32dd5d22d52 to your computer and use it in GitHub Desktop.
Save ruzli/ae154d571c01dc38f5c6d32dd5d22d52 to your computer and use it in GitHub Desktop.
5x bet after skips until 10x appear
const baseBet = 1
const baseTarget = 10
const multiplierBet = 2
const maxProfit = 10000
const sleepTime = 0
let bet = baseBet
let target = baseTarget
let lostbet = baseBet
let lost = 0
let win = 0
let started = 0
while(true){
await sleep(sleepTime)
if (this.balance / 100 > maxProfit){
await this.stop()
}
if (started < 1){
var{multiplier} = await this.skip()
}else{
this.log(bet)
var{multiplier} = await this.bet(bet*100, baseTarget / 2)
}
if (multiplier < baseTarget){ // LOSS
lost++
win = 0
if (lost > 3){
started = 0
}else{
started = 1
target = baseTarget
bet = bet * multiplierBet
}
}else{ // WIN
win++
lost = 0
if (started == 1){
bet = 1
}
}
}
async function sleep(ms){return new Promise(resolve => setTimeout(resolve, ms))}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment