|
@ -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; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
} |