Last active
November 26, 2020 01:42
-
-
Save ruzli/7744c6fcb1522d99abfdd12f6ba73468 to your computer and use it in GitHub Desktop.
Payout Martingale [mydicebot]
This file contains 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
/*jshint esversion: 6 */ | |
baseBet = 0.00000001; | |
betHigh = false; | |
nextBet = baseBet; | |
var initBet = baseBet; | |
var initPay = 1.13; | |
var betIncrease = 0.00000000; | |
var payIncrease = 1.13; | |
var currentBet = initBet; | |
var currentPay = initPay; | |
chance = getChance(1.13); | |
function dobet() { | |
if (win) { | |
currentBet = baseBet; | |
currentPay = initPay; | |
} else { | |
currentBet += betIncrease; | |
currentPay += payIncrease; | |
} | |
nextBet = currentBet; | |
chance = getChance(currentPay); | |
console.log(`Target ${currentPay}x | Outcome ${round(100 / currentroll, 2)}x`); | |
} | |
function getChance(multiplier){ | |
return 100 / multiplier; | |
} | |
function round(number, decimals){ | |
var dec = decimals - 1; | |
var dec2 = 10 / (10 * dec); | |
var output = number - ((number * 100) % dec2) / 100; | |
return output; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment