diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index 69807d3..f8cae85 100644 Binary files a/build/test/out/c/quizduell.o and b/build/test/out/c/quizduell.o differ diff --git a/build/test/out/test_quizduell.out b/build/test/out/test_quizduell.out index 8aa3449..20f79a8 100755 Binary files a/build/test/out/test_quizduell.out and b/build/test/out/test_quizduell.out differ diff --git a/build/test/results/test_casualQuiz.pass b/build/test/results/test_casualQuiz.pass index b05960e..1e5245a 100644 --- a/build/test/results/test_casualQuiz.pass +++ b/build/test/results/test_casualQuiz.pass @@ -11,4 +11,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.0164479999998548 +:time: 0.016042600000218954 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index 827b3fd..a7d6bf4 100644 --- a/build/test/results/test_quizduell.pass +++ b/build/test/results/test_quizduell.pass @@ -15,4 +15,4 @@ :failed: 0 :ignored: 0 :stdout: [] -:time: 0.03147380000018529 +:time: 0.03114080000023023 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index dfb65c8..4662d41 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.016815299999962008 +:time: 0.01592659999960233 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index c8bdc68..5e5f5bb 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.016622499999812135 +:time: 0.015713100000084523 diff --git a/src/quizduell.c b/src/quizduell.c index 49dee6b..752db04 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -81,6 +81,15 @@ int spieleKategorie(Kategorie* kategorie) { printf("No Joker left. Choose a different Category.\n"); } } + else if (toupper(jokerAntwort[0]) == 'N') { + break; // Beendet die Schleife, wenn der Spieler keinen Joker verwenden möchte + } + else { + printf("Invalid input. Please type in 'Y'' for yes or 'N' for no.\n"); + } + } + else { + break; // Wenn der Joker bereits verwendet wurde, beendet die Schleife ohne nachzufragen } printf("Your answer: ");