Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
seuntjie
on 16/01/2017, 10:38:27 UTC
Hi programmers, I recently opened a separate thread about a bitsler dice strategy. If anyone can code it into a lua script, that would be great. I shouldn't be hard. Please look at https://bitcointalk.org/index.php?topic=1748508.0. Thanks.

any reward?

Somehow I was able to hammer out a decent script so the reward is I gonna share it for your improvement.  Wink

25% chance bitsler strategy (follow this thread for background: https://bitcointalk.org/index.php?topic=1748508):

Code:
chance = 25
multiplier = 1.35
base = 0.00000002
nextbet = base 
bethigh = false
rollcount = 7

function dobet()

--Randomly select High/Low
--bethigh = math.random(0,100)%2 == 0

--change seed every 7 bet
if rollcount == 7 then
rollcount = 0
resetseed();
else
rollcount = rollcount + 1
end

if (balance) < (nextbet) then
stop();
print(balance)
print("INSUFFICIENT FUNDS")
end

--bet progression
   if win then
      nextbet = base
   else
      nextbet = previousbet * multiplier
   end
end

end

See this screenshot for script result: http://imgur.com/a/mg2PE

I lack the know-how for a controlled bet high/low coding. The script starts with betting low all the way (bethigh = false). I need it to switch to high after a 10-bet losing streak, then once it hits the first win, switch to low again.

There might be some losing streak coding floating in earlier posts of this thread or outside this forum. Just let me know and I try to learn whatever I can. If you have better ideas for bet high/low strategy, feel free to amend the script code as above. Another idea is to stop the script running after a 20-bet losing streak but I KIV this first and am more keen to test bet high/low.

Thanks for your help.

Feel free to upload your scripts to https://bot.seuntjie.com/scripts.aspx