Browse Source

Joker

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
cbea4b90f2
  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. 3
      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
:ignored: 0
:stdout: []
:time: 0.01674389999993764
:time: 0.016213999999990847

2
build/test/results/test_quizduell.pass

@ -15,4 +15,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.0310532000000876
:time: 0.030860500000017055

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.016417299999829993
:time: 0.015949500000033368

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0
:ignored: 0
:stdout: []
:time: 0.017943500000001222
:time: 0.016731599999957325

3
src/quizduell.c

@ -22,12 +22,15 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant
int spieleKategorie(Kategorie* kategorie) {
int punktzahl = 0;
int jokerVerwendet = 0;
for (int i = 0; i < kategorie->anzahlFragen; i++) {
char benutzerAntwort[10];
printf("\nQuestion %d:\n%s", i + 1, kategorie->fragen[i].frage);
char jokerAntwort[10];
printf("Your answer: ");
scanf("%s", benutzerAntwort);

Loading…
Cancel
Save