Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const basebet = 1
- const payout = 2
- const increaseby = 2
- const amount = 10
- const probg = 50
- const probrg = 50
- const probrrg = 50
- const probrrrg = 50
- const proflimit = 500
- const losslimit = -500
- let currentBet = basebet * 100
- let history = new Array()
- let prob = new Array(4)
- let lossStreak = 0
- let profit = 0
- while (true) {
- if (history.length < amount) {
- const { multiplier } = await this.bet(100, 1.01)
- history.push(multiplier)
- continue
- }
- for (let i = 0; i < 4; i++) {
- prob[i] = 0;
- }
- for (let i = 0; i < amount; i++) {
- if (history[i] >= 2) {
- prob[0]++
- }
- }
- for (let i = 1; i < amount; i++) {
- if (history[i] >= 2 && history[i-1] < 2) {
- prob[1] += 2
- }
- }
- for (let i = 2; i < amount; i++) {
- if (history[i] >= 2 && history[i-1] < 2 && history[i-2] < 2) {
- prob[2] += 3
- }
- }
- for (let i = 3; i < amount; i++) {
- if (history[i] >= 2 && history[i-1] < 2 && history[i-2] < 2 && history[i-3] < 2) {
- prob[3] += 4
- }
- }
- console.log("%cGreen : %c%f%", "color:green", "color.black", prob[0] / amount * 100)
- console.log("%cRed%cGreen : %c%f%", "color:red", "color:green", "color.black", prob[1] / amount * 100)
- console.log("%cRedRed%cGreen : %c%f%", "color:red", "color:green", "color.black", prob[2] / amount * 100)
- console.log("%cRedRedRed%cGreen : %c%f%", "color:red", "color:green", "color.black", prob[3] / amount * 100)
- if (lossStreak == 0) {
- if (prob[0] / amount * 100 <= probg) {
- this.log(`Bet ${Math.round(currentBet / 100)} bits on ${payout}`)
- const { multiplier } = await this.bet(Math.round(currentBet / 100) * 100, payout)
- history.push(multiplier)
- history.shift()
- if (multiplier < payout) {
- profit -= currentBet
- lossStreak++
- currentBet *= increaseby
- } else {
- profit += currentBet * (payout - 1)
- lossStreak = 0
- currentBet = basebet * 100
- }
- } else {
- const { multiplier } = await this.bet(100, 1.01)
- history.push(multiplier)
- history.shift()
- }
- } else if (lossStreak == 1) {
- if ((prob[0] / amount * 100 <= probg) || (prob[1] / amount * 100 <= probrg)) {
- this.log(`Bet ${Math.round(currentBet / 100)} bits on ${payout}`)
- const { multiplier } = await this.bet(Math.round(currentBet / 100) * 100, payout)
- history.push(multiplier)
- history.shift()
- if (multiplier < payout) {
- profit -= currentBet
- lossStreak++
- currentBet *= increaseby
- } else {
- profit += currentBet * (payout - 1)
- lossStreak = 0
- currentBet = basebet * 100
- }
- } else {
- const { multiplier } = await this.bet(100, 1.01)
- history.push(multiplier)
- history.shift()
- }
- } else if (lossStreak == 2) {
- if ((prob[0] / amount * 100 <= probg) || (prob[1] / amount * 100 <= probrg) || (prob[2] / amount * 100 <= probrrg)) {
- this.log(`Bet ${Math.round(currentBet / 100)} bits on ${payout}`)
- const { multiplier } = await this.bet(Math.round(currentBet / 100) * 100, payout)
- history.push(multiplier)
- history.shift()
- if (multiplier < payout) {
- profit -= currentBet
- lossStreak++
- currentBet *= increaseby
- } else {
- profit += currentBet * (payout - 1)
- lossStreak = 0
- currentBet = basebet * 100
- }
- } else {
- const { multiplier } = await this.bet(100, 1.01)
- history.push(multiplier)
- history.shift()
- }
- } else if (lossStreak >= 3) {
- if ((prob[0] / amount * 100 <= probg) || (prob[1] / amount * 100 <= probrg) || (prob[2] / amount * 100 <= probrrg) || (prob[3] / amount * 100 <= probrrg)) {
- this.log(`Bet ${Math.round(currentBet / 100)} bits on ${payout}`)
- const { multiplier } = await this.bet(Math.round(currentBet / 100) * 100, payout)
- history.push(multiplier)
- history.shift()
- if (multiplier < payout) {
- profit -= currentBet
- lossStreak++
- currentBet *= increaseby
- } else {
- profit += currentBet * (payout - 1)
- lossStreak = 0
- currentBet = basebet * 100
- }
- } else {
- const { multiplier } = await this.bet(100, 1.01)
- history.push(multiplier)
- history.shift()
- }
- }
- if (profit > proflimit || profit < losslimit) {
- this.stop()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement