Removed unnecessary variable
This commit is contained in:
parent
0ce3d4de2a
commit
e9a2fd4a26
2 changed files with 0 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue