So, I’m having some issues here implementing this math problem in C++.
Let’s say I have a game that involves two randomly generated outcomes, these outcomes can either be a win or loss.
The algorithm is explained here: http://imageshack.us/f/98/terriblyexplained.png/
For example, if the first six rounds of the game go win, loss, win, win, loss, loss, the odds of winning the 7th round of that would be 78.90625%, and the odds of losing would be 21.09375%.
How might I implement this scenario into a formula, and implement that into an algorithm I can run in C++?
Instead of inputting the result you can generate it randomly according to current
WinChance.Hope this helps.