Algorithms resolving gambler's ruin problems
2 players a+b = 100 pA = 0.5
Capital of A = 50 Capital of B = 50 Simulating probability of gambler A's ruin and drawing a chart.
Counting number of turns to the end of a game for different probabilities at the beginning Capital a = 10 a+b = 20 pA = 0.2 / 0.5 / 0.8