From 15151c4b61c0349bf90417c0c5a47e51314f856a Mon Sep 17 00:00:00 2001 From: Pascal Schneider Date: Tue, 6 Feb 2024 21:51:12 +0100 Subject: [PATCH] =?UTF-8?q?refactoring:=20Konstante=20f=C3=BCr=20Quizzeit?= =?UTF-8?q?=20hinzugef=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/timequiz.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/timequiz.c b/src/timequiz.c index 83f2be0..9f22db7 100644 --- a/src/timequiz.c +++ b/src/timequiz.c @@ -6,7 +6,7 @@ #define NUM_ANSWERS 4 #define ASKED_QUESTIONS 40 - +#define MAX_QUIZ_TIME 60 //Funktionen des Codes void timequiz(); @@ -150,7 +150,7 @@ void timequiz() { srand((unsigned int)time(NULL)); //While-Schleife für Spielausführung - while (elapsedTime < 60 && totalAnsweredQuestions < totalQuestions) { + while (elapsedTime < MAX_QUIZ_TIME && totalAnsweredQuestions < totalQuestions) { int questionIndex = getRandomQuestionIndex(askedQuestions, totalQuestions); askedQuestions[questionIndex] = 1;