From f59b4ae5e4f914d064655df5a585be3feacdc5f4 Mon Sep 17 00:00:00 2001
From: Adriel <NuquiA@cardiff.ac.uk>
Date: Wed, 26 Oct 2022 12:15:25 +0100
Subject: [PATCH] Integrated Leaderboard to Level 1

---
 Group_game/game.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Group_game/game.py b/Group_game/game.py
index de8ca60..0e166f2 100644
--- a/Group_game/game.py
+++ b/Group_game/game.py
@@ -205,6 +205,10 @@ def unlock_door():
         if location_door["locked"]:
             if item_key in inventory:
                 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()
-- 
GitLab