Skip to content
Snippets Groups Projects
Commit 1e622804 authored by Ahmed Yusuf's avatar Ahmed Yusuf
Browse files

small changes

parent 3e7e939d
No related branches found
No related tags found
No related merge requests found
......@@ -205,11 +205,9 @@ def unlock_door():
if current_room["name"] == "level 1 Escape door":
if location_door["locked"]:
if item_key in inventory:
totalseconds = (minutes * 60) + seconds
append_leaderboard(totalseconds, 'Times.csv')
while True:
totalseconds = (minutes*60)+seconds
append_leaderboard(totalseconds, 'Times.csv')
print("WELL DONE! You've escaped LEVEL 1 in a time of", minutes, "minutes and", seconds,"seconds")
print("Type CONTINUE to begin the next level")
response = input()
......
......@@ -65,7 +65,7 @@ def append_leaderboard(seconds_used,filename): #time_used = 20 minutes - time r
file.close()
print("Input 'Yes' or 'No'")
userinput = input("Would you live to view the leaderboard? : ")
userinput = input("Would you like to view the leaderboard? : ")
userinput = userinput.lower()
if userinput == 'yes':
view_leaderboard(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment