Fixed a bug in speed reporting.

This commit is contained in:
Storm Dragon 2019-12-06 07:03:31 -05:00
parent 76245358aa
commit cf45a07176

View File

@ -94,7 +94,7 @@ def game(mode):
if spanks != 1: message[0] += "times."
message.append("Your total time was " + str(round(totalTime - startTime, 2)) + " seconds.")
try:
message.append("You averaged " + str(round((totalTime - startTime) / spanks, 2)) + " monkey spanks per second.")
message.append("You averaged " + str(round(spanks / (totalTime - startTime), 2)) + " monkey spanks per second.")
except:
message.append("You averaged 0.00 monkey spanks per second.")
time.sleep(0.1)