chance = 81.12 bethigh = true basebet = 0.00012 nextbet = basebet function dobet() if (win) then chance = 81.12 nextbet = basebet else if chance == 54.4 then nextbet = previousbet * 2.405 else chance = 54.4 nextbet = basebet/1.4 end end end