Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
cryptohustla
on 10/09/2016, 04:48:19 UTC
hi guys Smiley what code to use if you want to get the last bet high or lo roll? i need it so i can make a conditional statement that base on rolls whether its lo or hi ..

thank you

bethigh is the variable.  It's true/false.  So if (bethigh == true) then    The last bet was high.  == false would be low. 

bethigh = !bethigh  will flip it from one to the other   either low -> high or high -> low. 

hey thanks i figured it out anyway i want to stop after 3 streaks in a row my code isnt working can you please take a look

Quote
chance=49.5
base=0.00010000
nextbet = base

function dobet()

lossstreak = 0
lossswitch = 1

if (win) then

   lossstreak = 0
   lossswitch = 1
   nextbet=base

else

lossstreak += 1
nextbet=previousbet*2
if (lossstreak == lossswitch) then
      bethigh = !bethigh
      lossswitch += 1
      lossstreak = 0
elseif (lossstreak == 3) then
      lossstreak = 0
stop()
end

end

end

thanks in advance