A player wins each point independently with probability p. From 30-30, which
is deuce, they must go two points clear to win. Return their probability of
winning the game.
Let be the answer. From deuce they either take both points, lose both, or split and return to deuce:
Input
0.5
Output
0.5