Last active
November 19, 2017 10:18
-
-
Save jdleo/081d3df3763f53651060ffc9fe70162c to your computer and use it in GitHub Desktop.
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
| 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