diff --git a/Group_game/game.py b/Group_game/game.py index 47d75ba10e3712da4877fba29f3b24838b75bedd..e1ff59b2ea9f5fab35816cb15cbc4e02a46af6fb 100644 --- a/Group_game/game.py +++ b/Group_game/game.py @@ -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() diff --git a/Group_game/leaderboard.py b/Group_game/leaderboard.py index 8e001ee6f07ce61c01b0b7431a2af665a9801f47..871773b48eca0fda69ca896bc70801c77aa7e87c 100644 --- a/Group_game/leaderboard.py +++ b/Group_game/leaderboard.py @@ -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)