|
@ -25,10 +25,12 @@ int game(char you, char computer) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
int Modus1() { |
|
|
int Modus1() { |
|
|
|
|
|
char ende[10] = "Weiter"; |
|
|
int n; |
|
|
int n; |
|
|
char Mensch[50]; |
|
|
char Mensch[50]; |
|
|
printf("\t\t\t\tName Mensch/in: "); |
|
|
printf("\t\t\t\tName Mensch/in: "); |
|
|
scanf("%s", Mensch); |
|
|
scanf("%s", Mensch); |
|
|
|
|
|
while (ende[0] == 'W' || ende[0] == 'w') { |
|
|
char you = 'Y', computer, Lösung; |
|
|
char you = 'Y', computer, Lösung; |
|
|
srand(time(NULL)); |
|
|
srand(time(NULL)); |
|
|
n = rand() % 100; |
|
|
n = rand() % 100; |
|
@ -45,4 +47,9 @@ int Modus1() { |
|
|
scanf(" %c", &you); |
|
|
scanf(" %c", &you); |
|
|
} |
|
|
} |
|
|
int Stand1 = 0, Stand2 = 0; |
|
|
int Stand1 = 0, Stand2 = 0; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
printf("\t\t\t\tMoechten Sie weiter spielen oder beenden? (Weiter/Ende)\n\t\t\t\t"); |
|
|
|
|
|
scanf("%s", ende); |
|
|
|
|
|
} |
|
|
} |
|
|
} |