Browse Source

JokerWirdBenutzt

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
4faa73021e
  1. BIN
      build/test/out/c/quizduell.o
  2. BIN
      build/test/out/test_quizduell.out
  3. 2
      build/test/results/test_casualQuiz.pass
  4. 2
      build/test/results/test_quizduell.pass
  5. 2
      build/test/results/test_timequiz.pass
  6. 2
      build/test/results/test_wwm.pass
  7. 8
      src/quizduell.c

BIN
build/test/out/c/quizduell.o

BIN
build/test/out/test_quizduell.out

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01736479999999574
:time: 0.016698599999926955

2
build/test/results/test_quizduell.pass

@ -15,4 +15,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.03556579999985843
:time: 0.03333500000007916

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01705069999979969
:time: 0.016289200000301207

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.01840379999975994
:time: 0.01632770000014716

8
src/quizduell.c

@ -38,6 +38,14 @@ int spieleKategorie(Kategorie* kategorie) {
printf("\nDo you want to use the joker? (Y/N): "); printf("\nDo you want to use the joker? (Y/N): ");
scanf("%s", jokerAntwort); scanf("%s", jokerAntwort);
printf(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: "); printf("Your answer: ");

Loading…
Cancel
Save