diff --git a/build/test/out/c/quizduell.o b/build/test/out/c/quizduell.o index b58391d..96f3a8b 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 8cf7412..46ca155 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 c1ff0ed..203a45c 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.01736479999999574 +:time: 0.016698599999926955 diff --git a/build/test/results/test_quizduell.pass b/build/test/results/test_quizduell.pass index c4c5b9c..1087de5 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.03556579999985843 +:time: 0.03333500000007916 diff --git a/build/test/results/test_timequiz.pass b/build/test/results/test_timequiz.pass index eb8593a..ddd66f9 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.01705069999979969 +:time: 0.016289200000301207 diff --git a/build/test/results/test_wwm.pass b/build/test/results/test_wwm.pass index a6a99ee..b772e98 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.01840379999975994 +:time: 0.01632770000014716 diff --git a/src/quizduell.c b/src/quizduell.c index 0048a09..ab6ee4a 100644 --- a/src/quizduell.c +++ b/src/quizduell.c @@ -38,6 +38,14 @@ int spieleKategorie(Kategorie* kategorie) { printf("\nDo you want to use the joker? (Y/N): "); scanf("%s", jokerAntwort); printf(jokerAntwort); + + if (toupper(jokerAntwort[0]) == 'Y') { + if (kategorie->joker > 0) { + kategorie->joker -= 1; + jokerVerwendet = 1; + printf("Joker inserted! Two incorrect answer options were deleted.\n"); + } + } } printf("Your answer: ");