/* Coded by jbab
Initial Values are Bet:1 Win:2 <-- should probably start the bot with that
Bot has 2 betting strategy
1st: if it losses it increase win + 2, it will continue to till its chances of winnin go below 4%
if it wins it will reset to initial value. once it goes below 4% winnin it will switch to 2nd
2nd: just simple martingale strategy that will try to complete 13 rolls to regain the losses from the beginning then it will switch back.
May be lucky, may not be... haven't test it that much cause the free play stops after like 20 rolls -_-
*/
var b=1;
var x=0;
function dice_bot()
{
if(x>0)//Martingaling
{
if(last())// martingale if win - reset value
{
bet(b);
win(bet()*2);
if(x==13) //counting how many bets while martingaleing that are won
x=0; //only lost 13 with first betting strategy so only need 13 sucesful martingale
else
x++;
}
else //martingale
{
bet(bet()*2);
if (bet() >50)//if martingale completely fails go back to original betting and take loss
{
x=0;
bet(b);
}
win(bet()*2);
}
}
else if(win() == 26)//if first betting gets to max value resort to martingale
{
win(b*2)
bet(b)
x++;
}
else if(last())//reset if win(first betting strat)
win(2);
else //double win amount if lose(first betting strat)
win(win()+2);
return "hi";
}
So blazin a spliff and trying to remember how to code again just threw this simple thing together not sure if its worth anything but it switches between 2 betting modes. Cool site by the way, lots of fun
1HiXNwNHr3W9tkVqA3Vumva1n2RwdXkC8P