Browse Source

KategorienZeigen

remotes/origin/Kevin
Kevin Schellberg 11 months ago
parent
commit
17b0e14106
  1. 2
      build/test/results/test_casualQuiz.pass
  2. 2
      build/test/results/test_quizduell.pass
  3. 2
      build/test/results/test_timequiz.pass
  4. 2
      build/test/results/test_wwm.pass
  5. 11
      src/quizduell.c

2
build/test/results/test_casualQuiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016070999999953983
:time: 0.016537700000014866

2
build/test/results/test_quizduell.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016301499999997304
:time: 0.01670110000003433

2
build/test/results/test_timequiz.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016418199999975513
:time: 0.01629889999998113

2
build/test/results/test_wwm.pass

@ -11,4 +11,4 @@
:failed: 0 :failed: 0
:ignored: 0 :ignored: 0
:stdout: [] :stdout: []
:time: 0.016148299999997562
:time: 0.01620580000002292

11
src/quizduell.c

@ -16,6 +16,11 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant
} }
void zeigeVerfuegbareKategorien(Kategorie kategorien[]) {
printf("\nChoose a Category:\n");
if (kategorien[0].fragen != NULL) printf("Mountains\n");
}
void quizduell() { void quizduell() {
printf("Welcome to the singleplayer quizduell!\n"); printf("Welcome to the singleplayer quizduell!\n");
@ -25,6 +30,12 @@ void quizduell() {
kategorien[0].anzahlFragen = MAX_QUESTIONS_PER_CATEGORY; kategorien[0].anzahlFragen = MAX_QUESTIONS_PER_CATEGORY;
kategorien[0].joker = 1; kategorien[0].joker = 1;
while (1) {
char auswahl[50];
zeigeVerfuegbareKategorien(kategorien);
return; return;
} }
}
Loading…
Cancel
Save