stop main menu
parent
08d2256182
commit
432ec54e1c
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
2024-04-30 Selim 254
|
||||
2024-04-30 Enes 127
|
||||
2024-04-30 David 82
|
||||
___ ___ 0
|
||||
2024-04-30 Olaf 72
|
||||
___ ___ 0
|
||||
___ ___ 0
|
||||
___ ___ 0
|
||||
|
|
|
BIN
bin/ui/TUI.class
BIN
bin/ui/TUI.class
Binary file not shown.
|
@ -1,7 +1,7 @@
|
|||
2024-04-30 Selim 254
|
||||
2024-04-30 Enes 127
|
||||
2024-04-30 David 82
|
||||
___ ___ 0
|
||||
2024-04-30 Olaf 72
|
||||
___ ___ 0
|
||||
___ ___ 0
|
||||
___ ___ 0
|
||||
|
|
|
|
@ -13,13 +13,14 @@ public class TUI {
|
|||
|
||||
System.out.println("\nYahtzee Star Wars Special!");
|
||||
|
||||
while (!choice.equals("stop")) {
|
||||
while (!choice.equals("Stop")) {
|
||||
|
||||
YahtzeeGame game = new YahtzeeGame() {
|
||||
};
|
||||
System.out.println("\nMain menu:");
|
||||
System.out.println(">Play");
|
||||
System.out.println(">Highscores");
|
||||
System.out.println(">Stop");
|
||||
choice = sc.nextLine();
|
||||
|
||||
if (choice.equals("Highscores")) {
|
||||
|
@ -131,7 +132,7 @@ public class TUI {
|
|||
System.out.println("Saving all highscores to the highscore table...");
|
||||
game.saveAllPlayersHighscores();
|
||||
System.out.println(
|
||||
"\nIf you want to stop the programm type: 'stop', otherwise you will return to the main menu:");
|
||||
"\nIf you want to stop the programm type: 'Stop', otherwise you will return to the main menu:");
|
||||
choice = sc.nextLine();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue