Bitcoin Forum
May 02, 2024, 12:45:42 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Economy / Gambling discussion / Need help with custom betting strategy on: April 14, 2016, 02:33:22 PM
I want to make a strategy that bets 0 untill 3 losses and then bets 0.00001. If win or loss then return to 0 but if loss then increase the 0.000001 * 2

If anyone knows how to do this then please let me know Smiley
Code:
chance= 47.5
base=0.0000000
test=0.00001
bethigh = true
function dobet()
if win then
base=0.0000000
nextbet = base
end
if lose then
if(first and !done)then
base=0.0000000nextbet = base
end
if(second and !done)then
base=0.0000000
nextbet = base
end
if(third and !done)then
nextbet = test
end
if(forth and !done)then
base=0.0000000
nextbet = base
test = test * 2
end
end
end
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!