Browse Source

refactoring: von Modus1 zu PVC

remotes/origin/Celine
Celine Khazarian 11 months ago
parent
commit
5294b98467
  1. 4
      src/main/c/SchereSteinPapier.c

4
src/main/c/SchereSteinPapier.c

@ -24,7 +24,7 @@ int game(char you, char computer)
return 1; return 1;
} }
int Modus1() {
int PVC() {
int Stand1 = 0, Stand2 = 0; int Stand1 = 0, Stand2 = 0;
char ende[10] = "Weiter"; char ende[10] = "Weiter";
int n; int n;
@ -125,7 +125,7 @@ int Start() {
printf("Spielmodus waehlen:\n[1] Computer\n[2] 2 Spieler\n"); printf("Spielmodus waehlen:\n[1] Computer\n[2] 2 Spieler\n");
scanf("%d", &Frage); scanf("%d", &Frage);
switch (Frage) { switch (Frage) {
case 1: Modus1(); break;
case 1: PVC(); break;
case 2: Modus2(); break; case 2: Modus2(); break;
default: Start(); default: Start();
} }
Loading…
Cancel
Save