From fdc45e195eb1b77baf3165b5875c8c116cb5ffe0 Mon Sep 17 00:00:00 2001
From: thomaskmatthew <thomaskmatthew@gmail.com>
Date: Sun, 18 Jul 2021 08:45:05 -0500
Subject: [PATCH] print statment now keeps in track of the total score

---
 main.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index 57e833e..1b76838 100644
--- a/main.py
+++ b/main.py
@@ -110,8 +110,10 @@ class QuizzerApp(App):
         question = self.questions[-1] if len(self.questions) > 0 else QuizzerApp.DEFAULT_QUESTION
         self.paused = True
         self.correct = answer == question[2]
+
         if self.correct:
-            print("You got it correct")
+            self.score += 1
+            print(f'You got it correct, number of right are: {self.score}')
         Clock.schedule_once(lambda delta: self.unpause(), PAUSE_TIME)
 
     def unpause(self):
-- 
GitLab