Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
hari_n
on 18/07/2021, 16:30:51 UTC
THis is my code.. I write a function after 3 losses code going to stop..
after stop i need a restart a code..
what is the restart programme code..
THank you

chance    = 95
basebet   = 0.01
bethigh   = true
losecount = 0
nextbet   = basebet
target    = balance * 2

maxbet = 0.5

function dobet()
   
if losecount == 3 then

stop()

end


 


    if (win) then
        chance    = 95
        nextbet   = basebet
        losecount = 0
    else
        losecount = losecount + 1
        resetseed()
        if (losecount > 1) then
            nextbet = previousbet * 2
            chance  = (1 / ((nextbet + (nextbet - basebet)) / nextbet)) * 100
            if chance < 49.5 then
               chance = 49.5
            end
            bethigh = not bethigh
        else
            nextbet = previousbet * 2
            chance  = (1 / ((basebet + nextbet) / nextbet)) * 100
            if chance < 49.5 then
               chance = 49.5
            end
           bethigh = not bethigh
        end
    end
end