Skip to content

Instantly share code, notes, and snippets.

@mydicebot
Created April 2, 2020 07:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mydicebot/540e87c9eb029b9c33d4c221fea4d27f to your computer and use it in GitHub Desktop.
Save mydicebot/540e87c9eb029b9c33d4c221fea4d27f to your computer and use it in GitHub Desktop.
slow safe sample #MyDiceBot#
basebet = 0.01;
nextbet = 0.01;
bb = 0.01;
bb6 = 0.02;
pbet = 0.00000001;
pbet3 = 0.00000001;
pb3 = 1;
pb = 1;
pbb3 = 0;
pbb = 0;
nb = 0;
chance = 62;
function dobet() {
if (pbb3 == 1)
pbb3 = 0;
if (pbb == 1)
pbb = 0;
if (win && chance == 38) {
pb3 = 1;
pbb3 = 1;
} else if (chance == 38 && pbb3 == 0) {
pb3 = 0;
}
if (win && chance == 62) {
pb = 1;
pbb = 1;
} else if (chance == 62 && pbb == 0){
pb = 0;
}
if (chance == 62 && pb == 0 ) {
pbet = pbet*3;
} else if (chance == 62 && pb == 1) {
pbet = bb6;
}
if (chance == 38 && pb3 == 0) {
pbet3 = pbet3*1.7;
} else if (chance == 38 && pb3 == 1) {
pbet3 = bb;
}
if (chance >= 62) {
chance = 38;
nb = 1;
bethigh = true;
} else {
chance = 62;
nb = 2;
bethigh = false;
}
if (nb == 1) {
nextbet = pbet3;
nb = 2;
} else if (nb == 2) {
nextbet = pbet;
nb = 1;
}
}
@tommysllee
Copy link

hi i found that the pattern is interesting, but would you mind telling me what is the purpose of each var? or at least give note with "--"?

or give multiplying variable for variables that need to be multiplied, ex if I have the balance of 10 doge, bb = 0.01 * multiplybalance, where multiplybalance is 1, then if 50 doge, multiplybalance can be 5... so we can only input multiply balance...

however those 3 options will be very helpful for me, as I can modify later

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment