瀏覽代碼

Backing up changes

Lauren Green 6 年之前
父節點
當前提交
a65a443b70
共有 2 個檔案被更改,包括 6 行新增7 行删除
  1. 1
    1
      src/main/java/io/zipcoder/casino/Console.java
  2. 5
    6
      src/main/java/io/zipcoder/casino/Yahtzee.java

+ 1
- 1
src/main/java/io/zipcoder/casino/Console.java 查看文件

@@ -104,7 +104,7 @@ public class Console {
104 104
 
105 105
     public String getCommand() {
106 106
         String command = "";
107
-        String input = scanner.nextLine();
107
+        String input = scanner.next();
108 108
         input = input.toLowerCase().trim();
109 109
 
110 110
         for(String name : gameLib){

+ 5
- 6
src/main/java/io/zipcoder/casino/Yahtzee.java 查看文件

@@ -21,12 +21,6 @@ public class Yahtzee extends DiceGame implements Game, Gamble {
21 21
         this.betAmount = bid;
22 22
     }
23 23
 
24
-
25
-    @Override
26
-    public void quit() {
27
-
28
-    }
29
-
30 24
     public void startGame() {
31 25
         Dice dice1 = new Dice();
32 26
         Dice dice2 = new Dice();
@@ -223,4 +217,9 @@ public class Yahtzee extends DiceGame implements Game, Gamble {
223 217
         System.out.println("You won $" + payOut);
224 218
     }
225 219
 
220
+    @Override
221
+    public void quit() {
222
+
223
+    }
224
+
226 225
 }