Hi so i've been thinking how could i make something safer using the martingale setting.

I came up with something, chance of loosing on 10 row streak on 50% dice would be smaller if we could double our bets on every 3 losses streak. Here's an exemple:

Bold is loss and Italic would be win:

*0 0 0* *0 0 0 10000* (After a loss it comes back to 0 and try again on the next 3 losses streak but it doubles using the martingale strategy) :

* 0 0 0* **0 0 0** *20 000 *.

So here you go, you just made 10k satoshi. I don't know if i'm being clear but i just cant figure out by myself how i can set a bet after 3 losses then reset it to 0 and then double it the next 3 losses, can someone enlighten me ?

Thank you