Removed unnecessary variable

This commit is contained in:
Phil Bajsicki 2024-04-20 15:26:56 +02:00
parent 0ce3d4de2a
commit e9a2fd4a26
2 changed files with 0 additions and 2 deletions

View file

@ -190,7 +190,6 @@ For each throw, the probability of winning is the same.
def multi_turn_single(k):
p_win = 1 / k # Winning probability on any given throw
p_lose = (k-1) / k # Losing probability on any given throw
bob_wins_prob_sum = 0
r = p_lose**2
probability_win = p_win / (1 - r)
return probability_win

View file

@ -74,7 +74,6 @@ def one_turn_single(k):
def multi_turn_single(k):
p_win = 1 / k # Winning probability on any given throw
p_lose = (k-1) / k # Losing probability on any given throw
bob_wins_prob_sum = 0
r = p_lose**2
probability_win = p_win / (1 - r)
return probability_win