i want to write a code which does the following bet functions on freebitco.in:
There is a base bet of 1 sats. It is placed on 2X payout and bet high =true.If this bet wins then nextbet is placed with same conditions .But if it losses then nextbet is placed with 2sats on 2X payout and bethigh=false.Again if this bet wins then nextbet is placed with basebet of 1 sat and 2X payout on bethigh=false and if the bet was lost, then bet amount becomes 4 sats on 2X payout and bethigh=true.Again the nextbet becomes 8 sats on 2 X payout and bethigh=false if lost and resets back to basebet of 1 sats on 2X payout and bethigh=true if win.