stop main menu

main
selim 2024-04-30 16:33:51 +02:00
parent 08d2256182
commit 432ec54e1c
5 changed files with 5 additions and 4 deletions

Binary file not shown.

View File

@ -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

1 2024-04-30 Selim 254
2 2024-04-30 Enes 127
3 2024-04-30 David 82
4 ___ ___ 0 2024-04-30 Olaf 72
5 ___ ___ 0
6 ___ ___ 0
7 ___ ___ 0

Binary file not shown.

View File

@ -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

1 2024-04-30 Selim 254
2 2024-04-30 Enes 127
3 2024-04-30 David 82
4 ___ ___ 0 2024-04-30 Olaf 72
5 ___ ___ 0
6 ___ ___ 0
7 ___ ___ 0

View File

@ -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();
}
}