diff --git a/Group_game/Times.csv b/Group_game/Times.csv new file mode 100644 index 0000000000000000000000000000000000000000..9790dd23b3b5d6c7069ef9af3a8304bf43c3969e --- /dev/null +++ b/Group_game/Times.csv @@ -0,0 +1 @@ +index,name,seconds \ No newline at end of file diff --git a/Group_game/Timeslvl2.csv b/Group_game/Timeslvl2.csv new file mode 100644 index 0000000000000000000000000000000000000000..9790dd23b3b5d6c7069ef9af3a8304bf43c3969e --- /dev/null +++ b/Group_game/Timeslvl2.csv @@ -0,0 +1 @@ +index,name,seconds \ No newline at end of file diff --git a/Group_game/game.py b/Group_game/game.py index e1ff59b2ea9f5fab35816cb15cbc4e02a46af6fb..4a138e6a42a651c54f17149d466445adb164b0d3 100644 --- a/Group_game/game.py +++ b/Group_game/game.py @@ -400,6 +400,9 @@ def main(): print() print("WELL DONE! You have completed the escape room.") print('You took', minutes, 'minutes and', seconds, 'seconds.') + + lvl2seconds = (minutes * 60) + seconds + append_leaderboard(lvl2seconds, 'Timeslvl2.csv') print() break diff --git a/Group_game/leaderboard.py b/Group_game/leaderboard.py index 871773b48eca0fda69ca896bc70801c77aa7e87c..5f91900ba0fcea069c6fcc11d6799f0c9ed97f32 100644 --- a/Group_game/leaderboard.py +++ b/Group_game/leaderboard.py @@ -76,4 +76,4 @@ def append_leaderboard(seconds_used,filename): #time_used = 20 minutes - time r #Returns back to game.py - +append_leaderboard(244, 'Timeslvl2.csv') \ No newline at end of file