Skip to content
Snippets Groups Projects
Unverified Commit c0dbb9a6 authored by Jan's avatar Jan Committed by GitHub
Browse files

Fixed reversed probabilty outputs.

parent 498a8113
No related branches found
No related tags found
No related merge requests found
...@@ -58,7 +58,7 @@ while True: ...@@ -58,7 +58,7 @@ while True:
# Finding maximum/a # Finding maximum/a
maximum = max(probabilities) maximum = max(probabilities)
max_ind = probabilities.index(maximum) max_ind = probabilities.index(maximum)
if probabilities[max_ind + 1] == maximum: if probabilities[max_ind + 1] != maximum:
info_str += "The highest probability is rolling a {} with a probability of {} %".format(sums[max_ind], maximum) info_str += "The highest probability is rolling a {} with a probability of {} %".format(sums[max_ind], maximum)
else: else:
info_str += "The highest probabilities are for rolling a {} or {} with a probability of {} %".format(sums[max_ind], sums[max_ind] + 1, maximum) info_str += "The highest probabilities are for rolling a {} or {} with a probability of {} %".format(sums[max_ind], sums[max_ind] + 1, maximum)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment