From 4d2a297108e902018eba0f2eae12b2149271b75c Mon Sep 17 00:00:00 2001
From: thomaskmatthew <thomaskmatthew@gmail.com>
Date: Mon, 19 Jul 2021 17:55:10 -0500
Subject: [PATCH] The app updates score when a question is right

---
 main.py    | 1 +
 quizzer.kv | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/main.py b/main.py
index feb3356..b7118b7 100644
--- a/main.py
+++ b/main.py
@@ -116,6 +116,7 @@ class QuizzerApp(App):
         self.progress += 1
         if self.correct:
             self.score += 1
+            
             print(f'You got it correct, number of right are: {self.score} out of {QuizzerApp.NUMBER_OF_QUESTION}')
         else:
             print(f'total number of questions: {self.score} out of {QuizzerApp.NUMBER_OF_QUESTION}')
diff --git a/quizzer.kv b/quizzer.kv
index a1da68d..d30a9e8 100644
--- a/quizzer.kv
+++ b/quizzer.kv
@@ -87,7 +87,8 @@ ScreenManager:
                 pos_hint: {'x': 0.1}
                 size_hint_x: 0.8
             Label:
-                text: f'Score: {app.score}/100'
+
+                text: f'Score: {app.score}/5'
                 text_size: self.size
                 halign: 'right'
                 valign: 'middle'
-- 
GitLab