Analyze absorption probabilities and expected game durations in the classic gambler's ruin problem
Amount of money player A starts with
Combined capital of both players (Player B starts with 3)
Probability that Player A wins $1 each round (Player B wins with probability 0.500)
Two players with initial capitals of and dollars play a sequence of games. Each game, Player A wins $1 with probability or loses $1 with probability . The game ends when one player has all the money.