Browse Source

refactoring: Modus1 zu PVC

main
Celine Khazarian 11 months ago
parent
commit
836f068e1f
  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 S() {
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: main(); default: main();
} }
Loading…
Cancel
Save