Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const skipGame = 3
- const base = 100
- const maxBet = 5
- const maxWin = 1
- const minBaseBet = 1
- const multiple = 2
- const uprate = 2
- const maxBetStop = 1
- const maxwinstop = 0
- let currentBet = base
- let count = 0
- let bet = false
- let lossCount = 0
- let winCount = 0
- while (true) {
- if (!bet) {
- const {multiplier} = await this.bet(minBaseBet * 100, 2)
- if (multiplier < 2) {
- count++
- } else {
- if (count >= skipGame) {
- bet = true
- winCount = 0
- }
- count = 0
- }
- } else {
- const {multiplier} = await this.bet(Math.round(currentBet) * 100, 2)
- if (multiplier < multiple) {
- lossCount++
- if (lossCount >= maxBet) {
- if (maxBetStop) {
- this.stop()
- } else {
- lossCount = 0
- winCount = 0
- currentBet = base
- bet = false
- }
- }
- currentBet *= uprate
- } else {
- lossCount = 0
- winCount++
- currentBet = base
- if (winCount >= maxWin) {
- if (maxwinstop) {
- this.stop()
- } else {
- bet = false
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement