Skip to content
Snippets Groups Projects
Commit 04a05266 authored by Rsge's avatar Rsge
Browse files

Added info about dice thrown in graph

parent c05c291d
Branches
No related tags found
No related merge requests found
......@@ -61,7 +61,7 @@ while True:
for i in range(rolls, rolls * sides + 1):
sums.append(i)
probabilities.append(round(probability_calculator(i, rolls, sides) * 100, 6))
info_str = "The probability of your throw was {} %\n".format(probabilities[playersum - rolls])
info_str = "The probability of your throw using {}d{} was {} %\n".format(rolls, sides, probabilities[playersum - rolls])
# Finding maximum/a
maximum = max(probabilities)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment