Browse Source

minor fixes and improvements

Chad 6 years ago
parent
commit
d51f00b915

+ 1
- 0
src/main/java/io/zipcoder/casino/Leviathan/Console.java View File

@@ -17,6 +17,7 @@ public class Console {
17 17
         String userInput = scanner.nextLine();
18 18
         String userInput2 = userInput.toLowerCase();
19 19
         if(userInput2.equals("leave")){
20
+            System.out.print("You abandon your chips and sprint out of the casino.");
20 21
             System.exit(0);
21 22
         }
22 23
         return userInput2;

+ 1
- 1
src/main/java/io/zipcoder/casino/Leviathan/Games/HigherDice.java View File

@@ -60,7 +60,7 @@ public class HigherDice extends DiceGame implements Gambling {
60 60
             bet = aConsole.getIntInput("How much would you like to bet? You can only bet what you currently have.\n" +
61 61
                     "Current chips= " + aPlayer.getTotalChips()+ "\n");
62 62
 
63
-        }while(bet > aPlayer.getTotalChips() && bet > -1);
63
+        }while(bet > aPlayer.getTotalChips() && bet < 0);
64 64
 
65 65
         return bet;
66 66
     }

+ 6
- 1
src/main/java/io/zipcoder/casino/Leviathan/Table.java View File

@@ -63,8 +63,13 @@ public class Table {
63 63
             }else if (choice == 6) // Cash Out
64 64
                 {
65 65
                      play = false;
66
-                    aConsole.println("Thank you for coming "+ aPlayer.getName());
66
+                    aConsole.println("Thank you for coming to the Leviathan Casino "+ aPlayer.getName());
67
+                    aConsole.println("You've cashed out "+ aPlayer.getTotalChips()+ " chips");
68
+                    aConsole.println("Please come again!");
67 69
                 }
70
+                else{
71
+                aConsole.println("That is not an option "+ aPlayer.getName()+"... Do better");
72
+            }
68 73
         }
69 74
 
70 75
     }