Post
Topic
Board Gambling discussion
Re: Seuntjie' Dice bot programmers mode discussion.
by
B4RF
on 04/08/2017, 17:03:16 UTC
Hi, would someone be so kind to write a simple script for me?
It should alternately make two different bets, no matter if win or loss.
Example:
1st bet 1 satoshi on 49.5% on high
2nd bet 2 satoshi on 30% on low
3rd bet 1 satoshi on 49.5% on high
4th bet 2 satoshi on 30% on low
...
...

Thx in advance...

Doesnt really make sense to me but this one should be easy.
Try this one:

Code:
firstchance = 49.5
secondchance = 30

firstbet = 0.00000001
secondbet = 0.00000002

chance = firstchance
nextbet = firstbet
bethigh = true

function dobet()

  if chance == firstchance then
    chance = secondchance
    nextbet = secondbet
    bethigh = false
  else
    chance = firstchance
    nextbet = firstbet
    bethigh = true
  end
end