diff --git a/build/test/out/c/casualQuiz.o b/build/test/out/c/casualQuiz.o index 78f805f..9606ee9 100644 Binary files a/build/test/out/c/casualQuiz.o and b/build/test/out/c/casualQuiz.o differ diff --git a/build/test/out/test_casualQuiz.out b/build/test/out/test_casualQuiz.out index 1a1f3ec..4e7b145 100755 Binary files a/build/test/out/test_casualQuiz.out and b/build/test/out/test_casualQuiz.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index 90589e8..25d27be 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -61,4 +61,4 @@ - Right Answer, well done. - Wrong Input! - Wrong Input! -:time: 0.03401070000836626 +:time: 0.033071900019422174 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 1e25796..60103b3 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.015290900017134845 +:time: 0.014388599956873804 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index 7070fd5..6574cde 100644 --- a/build/test/results/test_timequiz.pass +++ b/build/test/results/test_timequiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.016262600023765117 +:time: 0.014871200022753328 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index 8523d6b..22c2d9a 100644 --- a/build/test/results/test_wwm.pass +++ b/build/test/results/test_wwm.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.015809100004844368 +:time: 0.015666099963709712 diff --git a/src/casualQuiz.c b/src/casualQuiz.c index e39a10f..fb4c6ee 100644 --- a/src/casualQuiz.c +++ b/src/casualQuiz.c @@ -30,10 +30,13 @@ void casualQuiz() { int answered = 0; int* correctP = &correct; int* answeredP = &answered; - - activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); - printf("korrekte Antworten: %d\n", correct); - printf("bei: %d beantworteten Fragen", answered); + bool already_played = false; + bool end = false; + while (end == false){ + activePlaying(easy_fragen, *easy_antworten, easy_richtigeAntworten, length_frag_array, answeredP, correctP); + printf("korrekte Antworten: %d\n", correct); + printf("bei: %d beantworteten Fragen", answered); + } return; } void activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], int size, int* answeredP, int* correctP) {