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;