|
|
@ -19,6 +19,12 @@ QuizFrage erstelleFrage(const char* frage, const char* antwortA, const char* ant |
|
|
|
void quizduell() { |
|
|
|
printf("Welcome to the singleplayer quizduell!\n"); |
|
|
|
|
|
|
|
Kategorie kategorien[MAX_CATEGORIES]; |
|
|
|
kategorien[0].fragen = (QuizFrage*)malloc(MAX_QUESTIONS_PER_CATEGORY * sizeof(QuizFrage)); |
|
|
|
kategorien[0].fragen[0] = erstelleFrage("Whats the height of the Zugspitze?", "2482 Meter", "2867 Meter", "2962 Meter", "3173 Meter", 'C'); |
|
|
|
kategorien[0].anzahlFragen = MAX_QUESTIONS_PER_CATEGORY; |
|
|
|
kategorien[0].joker = 1; |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |