Fixed up the winning time announcement.

This commit is contained in:
Storm Dragon 2019-11-25 16:00:44 -05:00
parent 6021f0c19e
commit 3d956ccf47
2 changed files with 4 additions and 2 deletions

View File

@ -5,7 +5,9 @@ released under the terms of the WTFPL http://wtfpl.net/
Requirements Requirements
sox sox
bash version 4 or greater bash version 4 or greater
TTYtter (optional) pygame
python-xdg
python-requests
Playing Playing
You are given a scrambled list of numbers from 1 to 9. Press the number you want to flip from, and that number, plus all the numbers after it will reverse. the object of the game is to get the numbers in the right order, 123456789, in as few tries as possible. You are given a scrambled list of numbers from 1 to 9. Press the number you want to flip from, and that number, plus all the numbers after it will reverse. the object of the game is to get the numbers in the right order, 123456789, in as few tries as possible.

View File

@ -49,7 +49,7 @@ def game(mode):
endTime = round(time.time() - startTime, 2) endTime = round(time.time() - startTime, 2)
message = [ message = [
"Congratulations! You beat Numnastics in " + str(tries) + " tries.",\ "Congratulations! You beat Numnastics in " + str(tries) + " tries.",\
"Your time was " + str(endTime) + " seconds."] "Your time was " + str(int(endTime / 60)) + "minutes and " + str(round(endTime % 60, 2)) + " seconds."]
display_message(message) display_message(message)
sounds['win'].play() sounds['win'].play()
time.sleep(sounds['win'].get_length()) time.sleep(sounds['win'].get_length())