Created
April 2, 2020 07:52
-
-
Save mydicebot/2bd4a4e72d8eda6d3e18a43b25c08ea1 to your computer and use it in GitHub Desktop.
chance 10 smaple #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
chance = 10; | |
nextbet = 0.00001000; | |
basebet = 0.00001000; | |
installBet = 0.00001000; | |
X = 1.101; | |
memberbet = 0; | |
breakpoint = 0; | |
bethigh = false; | |
game = true; | |
regame = true; | |
function dobet() { | |
if (balance >= breakpoint) | |
breakpoint = balance; | |
if (bethigh && currentroll < chance) | |
X = X + 0.001; | |
if (!bethigh && (currentroll > (100-chance))) | |
X = X + 0.001; | |
if (game) { | |
if (!win) | |
installBet = previousbet*X; | |
if (win) | |
installBet = memberbet; | |
if (currentstreak < -10) { | |
game = false; | |
regame = false; | |
installBet = 0.00001000; | |
memberbet = 0.00001000; | |
X = 1.101; | |
} | |
nextbet = installBet; | |
} | |
if (!game && currentstreak < -20) { | |
regame = true; | |
installBet = 0.00001000; | |
memberbet = 0.00001000; | |
X = 1.101; | |
} | |
if (win && regame) { | |
game = true; | |
nextbet = memberbet; | |
} | |
if (win && balance >= breakpoint) { | |
game = true; | |
memberbet = 0.00001000; | |
X = 1.101; | |
nextbet = 0.00001000; | |
} | |
if (previousbet >= memberbet) | |
memberbet = previousbet; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment