-- 1-3-2-6 (positive progression, 4 steps)
-- Bet 1, 3, 2 and then 6 units on consecutive wins. Any loss goes back to 1 unit, and
-- so does completing the 4th win. At a 2.00x payout a full run of 4 wins makes
-- 12 units, and a run that ends in a loss finishes between 2 units down and 2 up.

chance  = 49.5
bethigh = false

basebet = params.basebet or balance / 2000
nextbet = basebet

local units = { 1, 3, 2, 6 }   -- bet sizes in base bets, one per win in a row
local step  = 1

function dobet()
  if win then
    step = step + 1
    if step > #units then
      step = 1   -- 4th win done: bank the run
    end
  else
    step = 1
  end
  nextbet = basebet * units[step]
end
