Fixed a bug in speed reporting.
This commit is contained in:
parent
76245358aa
commit
cf45a07176
@ -94,7 +94,7 @@ def game(mode):
|
|||||||
if spanks != 1: message[0] += "times."
|
if spanks != 1: message[0] += "times."
|
||||||
message.append("Your total time was " + str(round(totalTime - startTime, 2)) + " seconds.")
|
message.append("Your total time was " + str(round(totalTime - startTime, 2)) + " seconds.")
|
||||||
try:
|
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:
|
except:
|
||||||
message.append("You averaged 0.00 monkey spanks per second.")
|
message.append("You averaged 0.00 monkey spanks per second.")
|
||||||
time.sleep(0.1)
|
time.sleep(0.1)
|
||||||
|
Loading…
Reference in New Issue
Block a user