diff --git a/src/main/c/SchereSteinPapier.c b/src/main/c/SchereSteinPapier.c index 92c540b..54256e1 100644 --- a/src/main/c/SchereSteinPapier.c +++ b/src/main/c/SchereSteinPapier.c @@ -84,4 +84,14 @@ int Modus2() { scanf("%s", Mensch1); printf("\n\t\t\t\tName Mensch 2: "); scanf("%s", Mensch2); + char wahl1 = '0', wahl2 = '0'; + while (wahl1 != '3' && wahl1 != '1' && wahl1 != '2') { + printf("\n\t\t\t\t%s, waehlen Sie 1 fuer Schere, 2 fuer Stein oder 3 fuer Papier: ", Mensch1); + scanf(" %c", &wahl1); + } +#ifdef _WIN32 + system("cls"); +#else + system("clear"); +#endif } \ No newline at end of file