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