Fixed up the winning time announcement.
This commit is contained in:
@ -5,7 +5,9 @@ released under the terms of the WTFPL http://wtfpl.net/
|
||||
Requirements
|
||||
sox
|
||||
bash version 4 or greater
|
||||
TTYtter (optional)
|
||||
pygame
|
||||
python-xdg
|
||||
python-requests
|
||||
|
||||
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.
|
||||
|
@ -49,7 +49,7 @@ def game(mode):
|
||||
endTime = round(time.time() - startTime, 2)
|
||||
message = [
|
||||
"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)
|
||||
sounds['win'].play()
|
||||
time.sleep(sounds['win'].get_length())
|
||||
|
Reference in New Issue
Block a user