Jump to content

Farshad-vilson

Member
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Farshad-vilson's Achievements

Newbie

Newbie (1/14)

  • First Post
  • One Year In
  • One Month Later
  • Week One Done

Recent Badges

0

Reputation

  1. const config = { baseBet: { label: 'Base Bet', value: currency.minAmount, type: 'number', }, startingChance: { label: 'Starting Chance', value: 0.1, type: 'number', }, }; let chance = config.startingChance.value; let currentPayout = (1 / chance) * 99; let loseCount = 0; let betCount = 0; let variance = 1.025; let previousBet = 0; let runningBalance = currency.amount; let originalBalance = currency.amount; let currentBet = config.baseBet.value; function main() { game.onBet = () => { game.bet(currentBet, currentPayout).then((payout) => { runningBalance -= currentBet; previousBet = currentBet; betCount++; if (payout > 1) { const netWin = currentBet * currentPayout; runningBalance += netWin; currentBet = config.baseBet.value; loseCount = 0; chance = config.startingChance.value; variance = 1.025; } else { if (loseCount >= 190) { variance = 1.05; } if (loseCount >= 260) { variance = 1.066; } loseCount++; currentBet = previousBet * variance; chance += 0.01; } currentPayout = (1 / chance) * 99; if (betCount % 100 === 0) { logSummary(); } log.info(`Betting: ${currentBet.toFixed(7)} X ${currentPayout.toFixed(2)}`); }); }; } function logSummary() { const netNumber = runningBalance - originalBalance; const netPercentage = (netNumber / originalBalance) * 100; if (originalBalance < runningBalance) { log.success(`Total Profit: ${netNumber.toFixed(7)} (${netPercentage.toFixed(2)}%)`); } else { log.error(`Total Profit: ${netNumber.toFixed(7)} (${netPercentage.toFixed(2)}%)`); } }
×
×
  • Create New...