|
|
@ -1,6 +1,7 @@ |
|
|
|
#include <stdio.h> |
|
|
|
#include <stdbool.h> |
|
|
|
#include <string.h> |
|
|
|
#include <stdlib.h> |
|
|
|
|
|
|
|
#include "casualQuiz.h" |
|
|
|
|
|
|
@ -51,7 +52,7 @@ bool activePlaying(char* fragen[], char* antworten[], int richtige_antwort[], in |
|
|
|
richtig = false; |
|
|
|
FzeigeFragen(fragen, i); |
|
|
|
FzeigeAntworten(antworten, i); |
|
|
|
printf("Please type in your answer 1,2,3 or 4: "); |
|
|
|
printf("Reminder: Typing 0 lets you stop the game.\nPlease type in your answer 1,2,3 or 4: "); |
|
|
|
eingabe = FEingabeInteger(); |
|
|
|
richtig = FcheckaufRichtigkeit(eingabe, richtige_antwort, i); |
|
|
|
FzaehlernachAuswahl(richtig, answeredP, correctP); |
|
|
@ -76,6 +77,10 @@ int FEingabeInteger() { |
|
|
|
} |
|
|
|
bool FcheckaufRichtigkeit(int eingabe, int richtige_antwort[], int i) { |
|
|
|
switch (eingabe) { |
|
|
|
case 0:{ |
|
|
|
exit(7); |
|
|
|
break; |
|
|
|
} |
|
|
|
case 1: { |
|
|
|
printf("Case 1\n"); |
|
|
|
if (richtige_antwort[i] == 1) { |
|
|
|