Scanner close
parent
429c736e7c
commit
043283e86e
Binary file not shown.
|
@ -9,12 +9,13 @@ public class TUI {
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
System.out.println("Willkommen zum BlackJack Trainer");
|
System.out.println("Willkommen zum BlackJack Trainer");
|
||||||
BlackJackSpiel bj = new BlackJackSpiel();
|
BlackJackSpiel bj = new BlackJackSpiel();
|
||||||
|
Scanner sc = new Scanner(System.in);
|
||||||
|
|
||||||
|
|
||||||
while(true){
|
while(true){
|
||||||
int t = 1;
|
int t = 1;
|
||||||
String eingabe = "";
|
String eingabe = "";
|
||||||
System.out.println("Möchten Sie ein neues Spiel anfangen? (Ja/Nein)");
|
System.out.println("Möchten Sie ein neues Spiel anfangen? (Ja/Nein)");
|
||||||
Scanner sc = new Scanner(System.in);
|
|
||||||
if (sc.nextLine().equalsIgnoreCase("Ja")) {
|
if (sc.nextLine().equalsIgnoreCase("Ja")) {
|
||||||
|
|
||||||
bj.getNeueHand();
|
bj.getNeueHand();
|
||||||
|
@ -55,5 +56,7 @@ public class TUI {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sc.close();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue