Skip to content
Snippets Groups Projects
Commit b1421b42 authored by Ian Broyles's avatar Ian Broyles
Browse files

The app now resets the quiz after 5 questions have been answered

parent 519ffe31
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,10 @@ class QuizzerApp(App):
self.questions.pop()
if len(self.questions) == 0:
self.reshuffle()
if self.questions_answered == 5:
self.reshuffle()
self.questions_answered = 0
self.user_score = 0
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment