浏览代码

Moved things around

Lauren Green 6 年前
父节点
当前提交
27441c512a
共有 2 个文件被更改,包括 8 次插入10 次删除
  1. 0
    3
      src/main/java/io/zipcoder/casino/Console.java
  2. 8
    7
      src/main/java/io/zipcoder/casino/Yahtzee.java

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

@@ -48,7 +48,4 @@ public class Console {
48 48
         this.scanner = scanner;
49 49
     }
50 50
 
51
-    public Scanner getScanner() {
52
-        return scanner;
53
-    }
54 51
 }

+ 8
- 7
src/main/java/io/zipcoder/casino/Yahtzee.java 查看文件

@@ -22,6 +22,14 @@ public class Yahtzee extends DiceGame implements Game, Gamble {
22 22
         this.betAmount = bid;
23 23
     }
24 24
 
25
+    public DicePlayer getDicePlayer() {
26
+        return dicePlayer;
27
+    }
28
+
29
+    public int getTotalScore() {
30
+        return totalScore;
31
+    }
32
+
25 33
     public void startGame() {
26 34
         Dice dice1 = new Dice();
27 35
         Dice dice2 = new Dice();
@@ -194,11 +202,4 @@ public class Yahtzee extends DiceGame implements Game, Gamble {
194 202
         Printer.printMessage("You won $" + payOut);
195 203
     }
196 204
 
197
-    public DicePlayer getDicePlayer() {
198
-        return dicePlayer;
199
-    }
200
-
201
-    public int getTotalScore() {
202
-        return totalScore;
203
-    }
204 205
 }