My dear Spin, how are the things with you those days?

I saw interesting topic on another forum: betting on 1-8 numbers. Would you try to code it, please?

It says: we take numbers with 2 hits in last 12 spins. We will have maximum 8 numbers. We choose Flat bet or +1 on hit number.

Every new hot number is added to right side of the list. If there are already 8 numbers and there comes new qualifier, we drop number from the left side, so 1 2 3 4 5 6 7 8 becomes 2 3 4 5 6 7 8 9.

Number from the left side will always be dropped after any hit. Winning number is placed as first from the right side. So we have 1 2 3 4 5, next number is 3, we get 2 4 5 3. If after 1 2 3 4 5 comes 1, list is 3 4 5 1 (2 becomes first from the left and gets dropped). If 2 comes, list is 3 4 5 2!

If there are just 2 numbers, after hit we stay on just one: list 1 2, next number is 2, list becomes 2. If number 1 hits, on the list is just 1.

If we have only one number left, for example 3, we keep it after hit. Any new number will be added on right side of 3 as it comes.

So, we are dropping left number after every hit!

We keep all numbers after new is added (except when we already have 8 numbers!).

Also, a number just dropped could be back on the list in no time. List is 1 2, the 1 hit, 2 gets dropped. A couple spins later, the 2 hits. If there is another 2 on the board, the 2 gets added back on! List now 1 2.

We keep betting as long as we are happy with results. So, no resets!

Happy coding!