This commit is contained in:
Felitendo
2025-06-24 14:40:26 +02:00
parent b162251182
commit cdbf507c17
2 changed files with 22 additions and 1 deletions

View File

@@ -9,7 +9,7 @@ public class Main {
//Spieler spieler = new Spieler();
Spiele spiel = new Spiele();
spiel.zahlenraten();
spiel.menschaergeredichnicht();
//alpha.hello();
//spieler.machBenutzerEingabe();

View File

@@ -33,4 +33,25 @@ public class Spiele {
}
System.out.println("Gewonnen! Es war die Zahl " + zahl + "!");
}
public static void menschaergeredichnicht() {
int zahl;
do {
zahl = (int) (Math.random() *6) + 1;
System.out.println("Du hast eine " + zahl + " gewürfelt.");
} while (zahl == 6);
System.out.println("Du hast eine " + zahl + " gewürfelt. Super!");
}
public static void sockenfarbe () {
System.out.print("Gebe den gewünschten Tag (in Zahlen) ein!");
Scanner scan = new Scanner(System.in);
int eingabe = scan.nextInt();
//TODO
}
}