Browse Source

prompt bet

Connor Dunnigan 6 years ago
parent
commit
dbda733e83
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      src/main/java/io/zipcoder/casino/dicegames/Craps.java

+ 3
- 2
src/main/java/io/zipcoder/casino/dicegames/Craps.java View File

@@ -1,5 +1,6 @@
1 1
 package io.zipcoder.casino.dicegames;
2 2
 
3
+import io.zipcoder.casino.utilities.Console;
3 4
 import io.zipcoder.casino.utilities.Gamble;
4 5
 import io.zipcoder.casino.player.CrapsPlayer;
5 6
 import io.zipcoder.casino.player.Player;
@@ -8,7 +9,7 @@ import io.zipcoder.casino.player.Players;
8 9
 import java.util.ArrayList;
9 10
 
10 11
 public class Craps extends DiceGame implements Gamble {
11
-
12
+    Console console = new Console();
12 13
     private ArrayList<CrapsPlayer> crapsPlayers = new ArrayList<>();
13 14
     long bet;
14 15
 
@@ -36,7 +37,7 @@ public class Craps extends DiceGame implements Gamble {
36 37
     }
37 38
 
38 39
     public void placeBet() {
39
-        bet = 5;
40
+        bet = console.getIntegerInput("Enter your bet");
40 41
     }
41 42
 
42 43
     public void evaluateBet(Player player, long payout) {