|
|
@ -6,13 +6,19 @@ int run_magiceightball() { |
|
|
|
|
|
|
|
srand(time(NULL)); |
|
|
|
|
|
|
|
char antwort[6][100] = { |
|
|
|
char antwort[12][100] = { |
|
|
|
"Ja", |
|
|
|
"Nein", |
|
|
|
"Vielleicht", |
|
|
|
"Zweifelsfrei", |
|
|
|
"Bitte nicht", |
|
|
|
"Das trifft zu", |
|
|
|
"Frag mich das nicht", |
|
|
|
"Absolut!", |
|
|
|
"Unwarscheinlich", |
|
|
|
"Wascheinlich", |
|
|
|
"Das ist eine furchtbare Frage", |
|
|
|
"Das solltest du dir selbst beantworten", |
|
|
|
}; |
|
|
|
|
|
|
|
printf("Frage: "); |
|
|
@ -20,7 +26,7 @@ int run_magiceightball() { |
|
|
|
char fragesatz[100]; |
|
|
|
fgets(fragesatz, sizeof(fragesatz), stdin); |
|
|
|
|
|
|
|
int randomIndex = rand() % 6; |
|
|
|
int randomIndex = rand() % 12; |
|
|
|
printf("%s\n", antwort[randomIndex]); |
|
|
|
|
|
|
|
return 0; |