Browse Source

about to merge with working

Simran Bhutani 6 years ago
parent
commit
e54aa66f4b

+ 73
- 5
src/main/java/io/zipcoder/casino/CardGame.java View File

@@ -2,17 +2,20 @@ package io.zipcoder.casino;
2 2
 
3 3
 import java.lang.reflect.Array;
4 4
 import java.util.ArrayList;
5
+import java.util.Arrays;
5 6
 import java.util.HashMap;
6 7
 
7 8
 public abstract class CardGame {
9
+
8 10
     private int tablePot;
9 11
     private int minBet;
10 12
     private int maxBet;
11 13
     private int handSize;
12 14
     private int ante;
13
-    private Player playersTurn;
14
-    private ArrayList<CardPlayer> players;
15
-    private ArrayList<Card> deck = new ArrayList<>();
15
+    private CardPlayer playersTurn;
16
+    private Player winner = null;
17
+    private ArrayList<CardPlayer> players = new ArrayList<CardPlayer>();
18
+    private Deck deck = new Deck();
16 19
 
17 20
 
18 21
     CardGame(int minBet, int maxBet, int ante){
@@ -38,7 +41,7 @@ public abstract class CardGame {
38 41
         card.setVisibility(true);
39 42
     }
40 43
 
41
-    public ArrayList<Card> getDeck() {
44
+    public Deck getDeck() {
42 45
         return deck;
43 46
     }
44 47
 
@@ -46,11 +49,76 @@ public abstract class CardGame {
46 49
         return players;
47 50
     }
48 51
 
49
-    public void setDeck(ArrayList<Card> deck) {
52
+    public void addPlayers(Player... players){
53
+        for(Player player : players){
54
+            CardPlayer cardPlayer = new CardPlayer(player);
55
+            this.players.add(cardPlayer);
56
+        }
57
+    }
58
+
59
+    public void setDeck(Deck deck) {
50 60
         this.deck = deck;
51 61
     }
52 62
 
53 63
     public int getAnte(){
54 64
         return ante;
55 65
     }
66
+
67
+    public int getTablePot() {
68
+        return tablePot;
69
+    }
70
+
71
+    public void changeTablePot(int amountPlusMinus) {
72
+        tablePot += amountPlusMinus;
73
+    }
74
+
75
+    public Player getWinner() {
76
+        return winner;
77
+    }
78
+
79
+    public int getHandSize() {
80
+        return handSize;
81
+    }
82
+
83
+    public CardPlayer getPlayersTurn() {
84
+        return playersTurn;
85
+    }
86
+
87
+    public void setPlayersTurn(CardPlayer playersTurn) {
88
+        this.playersTurn = playersTurn;
89
+    }
90
+
91
+    public void addNpc(){
92
+        addPlayers(new NPC("Opponant", getAnte()));
93
+    }
94
+
95
+    public void chooseStatingPlayer(){
96
+        //loop through the players
97
+        for(int i = 0; i < getPlayers().size(); i ++){
98
+            //if one is not an NPC
99
+            if(!(getPlayers().get(i).getPlayer() instanceof NPC)){
100
+                //set this player to have the current turn
101
+                setPlayersTurn(getPlayers().get(i));
102
+                break;
103
+            }
104
+        }
105
+        System.out.println("it is now " + playersTurn.getPlayer().getName() + "'s turn");
106
+    }
107
+
108
+    public void chooseNextTurn(){
109
+        if(playersTurn != null)
110
+        {
111
+            //if it is the end of the turn circle
112
+            if((players.indexOf(playersTurn) + 1) == players.size()){
113
+                //start again at the starting player
114
+                playersTurn = players.get(0);
115
+                System.out.println("it is now " + playersTurn.getPlayer().getName() + "'s turn");
116
+
117
+            //if it is not the end of the turn circle
118
+            } else {
119
+                playersTurn = players.get(players.indexOf(playersTurn) + 1);
120
+                System.out.println("it is now " + playersTurn.getPlayer().getName() + "'s turn");
121
+            }
122
+        }
123
+    }
56 124
 }

+ 16
- 0
src/main/java/io/zipcoder/casino/CardPlayer.java View File

@@ -7,6 +7,10 @@ public class CardPlayer {
7 7
     private ArrayList<Card> hand = new ArrayList<>();
8 8
     private ArrayList<Card> discard = new ArrayList<>();
9 9
 
10
+    public CardPlayer(Player player){
11
+        this.player = player;
12
+    }
13
+
10 14
     public ArrayList<Card> getHand(){
11 15
         return hand;
12 16
     }
@@ -14,4 +18,16 @@ public class CardPlayer {
14 18
     public Player getPlayer() {
15 19
         return player;
16 20
     }
21
+
22
+    public Card playCard(){
23
+
24
+        if(hand.size() > 0){
25
+            Card card = hand.get(hand.size()-1);
26
+            hand.remove(hand.size()-1);
27
+
28
+            return card;
29
+        }
30
+
31
+        return null;
32
+    }
17 33
 }

+ 93
- 13
src/main/java/io/zipcoder/casino/Console.java View File

@@ -1,27 +1,107 @@
1 1
 package io.zipcoder.casino;
2
+import java.util.InputMismatchException;
3
+import java.util.Scanner;
2 4
 
3 5
 public class Console {
4
-    private Game[] games;
6
+    private Scanner scanner = new Scanner(System.in);
7
+    private String[] gameLib = {"yahtzee", "war", "three card stud"};
8
+    private Game game = null;
5 9
     private Player player;
10
+    private boolean running = true;
6 11
 
7 12
     Console(){}
8 13
 
9 14
     public void createAccount()
10 15
     {
11
-        /*
12
-            ask the player for their name.
13
-            ask the player for their starting balance
14
-            create the player.
15
-         */
16
+        System.out.println("Hello, what is your name?");
17
+        String name = scanner.next();
18
+
19
+        System.out.println("How much money are you bringing to the table?");
20
+        int balance = getIntFromUser();
21
+
22
+        player = new Player(name, balance);
16 23
     }
17 24
 
18
-    public void chooseGame(String gameName)
25
+    public void chooseGame()
19 26
     {
20
-        /*
21
-            ask the user for min max bet at the table
22
-            ask the user which game they would like to play
23
-            create a new game with min and max set based
24
-            on user input
25
-         */
27
+        System.out.println("Please choose a game to play!");
28
+        String command = getCommand();
29
+
30
+        switch(command){
31
+
32
+            case "war":
33
+//                int[] warMinMax = getMinMax();
34
+//                Game war = new War(warMinMax[0], warMinMax[1], 10);
35
+//                ((War) war).addPlayers(player);
36
+//                ((War) war).addNpc();
37
+//                war.StartGame();
38
+                break;
39
+
40
+            case "three card stud":
41
+//                int[] studMinMax = getMinMax();
42
+//                Game stud = new Stud(studMinMax[0], studMinMax[1], 10);
43
+//                ((Stud) stud).addPlayers(player);
44
+//                ((Stud) stud).addNpc();
45
+//                stud.StartGame();
46
+                break;
47
+
48
+            case "yahtzee":
49
+                Game yahtzee = new Yahtzee(player);
50
+                yahtzee.StartGame();
51
+                break;
52
+
53
+            default:
54
+                Printer.noMatchingGameName(gameLib);
55
+                break;
56
+        }
57
+    }
58
+
59
+    public int getIntFromUser(){
60
+        try{
61
+            int num = scanner.nextInt();
62
+            return num;
63
+        }catch(InputMismatchException err){
64
+            System.out.println("Please enter a number");
65
+            scanner.next();
66
+        }
67
+        return -1;
68
+    }
69
+
70
+    public int[] getMinMax(){
71
+        Printer.getBet("minimum bet");
72
+        int min = 0;
73
+        while(min <= 0){
74
+            min = getIntFromUser();
75
+            if(min < 0){
76
+                Printer.unacceptableMinBet();
77
+            }
78
+        }
79
+
80
+        Printer.getBet("maximum bet");
81
+        int max = 0;
82
+        while(max < min) {
83
+            max = getIntFromUser();
84
+            if(max < min){
85
+                Printer.unacceptableMaxBet(min);
86
+            }
87
+        }
88
+        int[] minMax = {min, max};
89
+        return minMax;
26 90
     }
91
+
92
+    public String getCommand() {
93
+        String command = "";
94
+        String input = scanner.next();
95
+        input = input.toLowerCase().trim();
96
+
97
+        for(String name : gameLib){
98
+            if(input.equals(name)){
99
+                command = name;
100
+                break;
101
+            }
102
+        }
103
+        command = command.toLowerCase().trim();
104
+        return command;
105
+    }
106
+
27 107
 }

+ 5
- 16
src/main/java/io/zipcoder/casino/Deck.java View File

@@ -3,8 +3,7 @@ package io.zipcoder.casino;
3 3
 import java.util.ArrayList;
4 4
 import java.util.Collections;
5 5
 
6
-public class Deck {
7
-    ArrayList<Card> deck;
6
+public class Deck extends ArrayList<Card>{
8 7
 
9 8
     /**
10 9
      * Deck constructor will create an array of all 52 @Card 's
@@ -15,17 +14,16 @@ public class Deck {
15 14
     }
16 15
 
17 16
     public void createDeck(){
18
-        this.deck = new ArrayList<>();
19 17
 
20 18
         for (int i = 0; i < 13; i++){
21 19
             Card.CardValue value = Card.CardValue.values()[i];
22 20
 
23 21
             for (int j = 0; j < 4; j++){
24 22
                 Card card = new Card(value, Card.Suit.values()[j]);
25
-                this.deck.add(card);
23
+                this.add(card);
26 24
             }
27 25
         }
28
-        Collections.shuffle(deck);
26
+        Collections.shuffle(this);
29 27
     }
30 28
 
31 29
     /**
@@ -35,7 +33,7 @@ public class Deck {
35 33
      * @return
36 34
      */
37 35
     public Card getCard(int index){
38
-        return this.deck.get(index);
36
+        return this.get(index);
39 37
     }
40 38
 
41 39
     /**
@@ -43,16 +41,7 @@ public class Deck {
43 41
      * @return
44 42
      */
45 43
     public Card pullCard(){
46
-        Card tempCard = this.deck.remove(0);
44
+        Card tempCard = this.remove(0);
47 45
         return tempCard;
48 46
     }
49
-
50
-    /**
51
-     * Used to retrieve the array with instantiated deck shuffled
52
-     * Will RETURN DECK
53
-     * @return
54
-     */
55
-    public ArrayList<Card> getDeck() {
56
-        return this.deck;
57
-    }
58 47
 }

+ 8
- 0
src/main/java/io/zipcoder/casino/NPC.java View File

@@ -0,0 +1,8 @@
1
+package io.zipcoder.casino;
2
+
3
+public class NPC extends Player {
4
+
5
+    NPC(String name, int initialBalance) {
6
+        super(name, initialBalance);
7
+    }
8
+}

+ 28
- 0
src/main/java/io/zipcoder/casino/Printer.java View File

@@ -0,0 +1,28 @@
1
+package io.zipcoder.casino;
2
+
3
+public class Printer {
4
+
5
+    public static void noMatchingGameName(String[] gameNames){
6
+
7
+        String games = "";
8
+
9
+        for(int i = 0; i < gameNames.length; i ++){
10
+            games += gameNames[i] + " ";
11
+        }
12
+        games = games.trim();
13
+
14
+        System.out.println("Sorry, there is no game with that name, try one of: " + games);
15
+    }
16
+
17
+    public static void getBet(String phrase){
18
+        System.out.println("What is the " + phrase + " at the table you're looking for?");
19
+    }
20
+
21
+    public static void unacceptableMaxBet(int minBet){
22
+        System.out.println("Your bet must be above " + minBet);
23
+    }
24
+
25
+    public static void unacceptableMinBet(){
26
+        System.out.println("Your bet must be above $0");
27
+    }
28
+}

+ 74
- 22
src/main/java/io/zipcoder/casino/SlotMachine.java View File

@@ -5,7 +5,7 @@ import java.util.Scanner;
5 5
 
6 6
 public class SlotMachine implements Game, Gamble {
7 7
 
8
-
8
+// implemented from gamble
9 9
     @Override
10 10
     public void Bet(int betAmount) {
11 11
 
@@ -16,6 +16,9 @@ public class SlotMachine implements Game, Gamble {
16 16
         return 0;
17 17
     }
18 18
 
19
+
20
+    // implementd from game
21
+
19 22
     @Override
20 23
     public void Quit() {
21 24
 
@@ -23,6 +26,8 @@ public class SlotMachine implements Game, Gamble {
23 26
 
24 27
     @Override
25 28
     public void StartGame() {
29
+        System.out.println("Welcome to Slot Machine!");
30
+
26 31
 
27 32
     }
28 33
 
@@ -39,36 +44,83 @@ public class SlotMachine implements Game, Gamble {
39 44
 
40 45
     String word="";
41 46
     String outputword="";
47
+    String word1="";
48
+    String word2="";
49
+    String word3="";
50
+    int useramount=0;
51
+    char playAgain= 'y';
52
+    double totalBet=0;
53
+
54
+    while(playAgain=='y'){
55
+
56
+        outputword="";
57
+
58
+        Random rand = new Random();
59
+
60
+        for(int i = 1; i <=3;i++){
61
+            int randnum = rand.nextInt(6);
62
+
63
+            if(randnum ==0) {
64
+                word = "DOG";
65
+            }
66
+            else if(randnum ==1) {
67
+                word = "CAT";
68
+            }
69
+            else if(randnum ==2) {
70
+                word = "RABBIT";
71
+            }
72
+            else if(randnum ==3) {
73
+                word = "SQUIRREL";
74
+            }
75
+            else if(randnum ==4) {
76
+                word = "FISH";
77
+            }
78
+            else if(randnum ==5) {
79
+                word = "MOUSE";
80
+            }
81
+            // outputword += word;
82
+
83
+            if(i==1){
84
+                word1= word;
85
+            }
86
+
87
+            else if(i==2){
88
+                word2= word;
89
+            }
90
+
91
+            else if(i==3){
92
+                word3= word;
93
+            }
94
+        }
95
+        outputword+= "[ " + word1+ " ]" + "   " + "[ " + word2 + " ]" + "   "+ "[ " + word3 + " ]" ;
42 96
 
43
-    Random rand = new Random();
44 97
 
45
-    for(int i = 1; i <=3;i++){
46
-        int randnum = rand.nextInt(6);
98
+        if((word1 != word2) && (word1 != word3) && (word2 != word3)){
47 99
 
48
-        if(randnum ==0) {
49
-            word = "DOG";
100
+            outputword= outputword + "/n You have won $0";
50 101
         }
51
-        else if(randnum ==1) {
52
-            word = "CAT";
53
-        }
54
-        else if(randnum ==2) {
55
-            word = "RABBIT";
56
-        }
57
-        else if(randnum ==3) {
58
-            word = "SQUIRREL";
59
-        }
60
-        else if(randnum ==4) {
61
-            word = "FISH";
102
+
103
+        else if( ((word1==word2) && (word1 != word3) ) || ((word1== word3) && (word1 != word2)) || ( (word2== word3) && (word2 != word1))){
104
+
105
+            outputword= outputword + "/n You have won $" + (useramount*2);
62 106
         }
63
-        else if(randnum ==5) {
64
-            word = "MOUSE";
107
+
108
+
109
+        else if( ((word1==word2) && (word1 ==word3) ) && ((word2==word1) && (word2 ==word3)) && ( (word3== word1) && (word3 ==word2))){
110
+
111
+            outputword= outputword + "/n You have won $" + (useramount*3);
65 112
         }
66
-        outputword += word;
113
+
114
+        System.out.println(( outputword + "/n/n/nDo you want to play again? /n/nPress y for yes, any key for no.").charAt(0));
115
+
116
+        //System.out.println(outputword);
117
+
118
+
119
+
67 120
     }
68 121
 
69
-    System.out.println(outputword);
70 122
 
71
-        if(){}
123
+
72 124
 
73 125
 
74 126
 

+ 56
- 53
src/main/java/io/zipcoder/casino/Stud.java View File

@@ -1,53 +1,56 @@
1
-package io.zipcoder.casino;
2
-
3
-public class Stud extends CardGame implements Gamble, Game {
4
-    public Stud(int minBet, int maxBet) {
5
-
6
-        super(minBet, maxBet);
7
-    }
8
-
9
-    public void Deal() {
10
-
11
-    }
12
-
13
-
14
-    public void determineWinner(){
15
-
16
-    }
17
-
18
-    public void fold(){
19
-
20
-    }
21
-
22
-    /**
23
-     * Below 3 Implemented from Gamble
24
-     * @param betAmount
25
-     */
26
-    public void Bet(int betAmount) {
27
-
28
-    }
29
-
30
-    public int Payout(int payoutAmount) {
31
-        return 0;
32
-    }
33
-
34
-    public void Ante(int anteAmount) {
35
-
36
-    }
37
-
38
-    /**
39
-     * Below 3 Implemented from Game
40
-     */
41
-
42
-    public void Quit() {
43
-
44
-    }
45
-
46
-    public void StartGame() {
47
-
48
-    }
49
-
50
-    public void StartRound() {
51
-
52
-    }
53
-}
1
+//package io.zipcoder.casino;
2
+//
3
+//public class Stud extends CardGame implements Gamble, Game {
4
+//    public Stud(int minBet, int maxBet) {
5
+//
6
+//        super(minBet, maxBet);
7
+//    public Stud( int minBet, int maxBet, int ante){
8
+//            super(minBet, maxBet, ante);
9
+//        }
10
+//
11
+//        public void Deal () {
12
+//
13
+//        }
14
+//
15
+//
16
+//        public void determineWinner () {
17
+//
18
+//        }
19
+//
20
+//        public void fold () {
21
+//
22
+//        }
23
+//
24
+//        /**
25
+//         * Below 3 Implemented from Gamble
26
+//         * @param betAmount
27
+//         */
28
+//        public void Bet ( int betAmount){
29
+//
30
+//        }
31
+//
32
+//        public int Payout ( int payoutAmount){
33
+//            return 0;
34
+//        }
35
+//
36
+//        public void Ante ( int anteAmount){
37
+//
38
+//        }
39
+//
40
+//        /**
41
+//         * Below 3 Implemented from Game
42
+//         */
43
+//
44
+//        public void Quit(){
45
+//
46
+//        }
47
+//
48
+//        public void StartGame(){
49
+//
50
+//        }
51
+//
52
+//        public void StartRound(){
53
+//
54
+//        }
55
+//    }
56
+//}

+ 107
- 95
src/main/java/io/zipcoder/casino/War.java View File

@@ -1,95 +1,107 @@
1
-package io.zipcoder.casino;
2
-
3
-import java.util.ArrayList;
4
-import java.util.HashMap;
5
-
6
-public class War extends CardGame implements Gamble, Game {
7
-
8
-    private ArrayList<Card> tableCards = new ArrayList<Card>();
9
-
10
-    War(int minBet, int maxBet, int ante) {
11
-        super(minBet, maxBet, ante);
12
-    }
13
-
14
-
15
-    /**
16
-     * Specific to war methods
17
-     */
18
-    public void playCard(){
19
-        //take a card from the hand
20
-        //add it to the tablecard face up
21
-    }
22
-
23
-    public void warMethod(){
24
-        //take three cards from your hand face down
25
-        //play one card face up
26
-    }
27
-
28
-    public void determineWinner(Card player1card, Card player2card){
29
-
30
-    }
31
-
32
-    /**
33
-     * Below 3 Implemented from Gamble
34
-     */
35
-    public void Bet(int betAmount) {
36
-        //add money to the pot
37
-    }
38
-
39
-    public int Payout(int payoutAmount) {
40
-
41
-        return 0;
42
-    }
43
-
44
-    public void payAnte() {
45
-        for(int i = 0; i < super.getPlayers().size(); i ++)
46
-        {
47
-            CardPlayer player = super.getPlayers().get(i);
48
-            player.getPlayer().changeBalance(-super.getAnte());
49
-        }
50
-    }
51
-
52
-    /**
53
-     * Below 3 Implemented from Game
54
-     */
55
-
56
-    public void Quit() {
57
-
58
-    }
59
-
60
-    public void StartGame() {
61
-        Deck deck = new Deck();
62
-        payAnte();
63
-        Deal();
64
-    }
65
-
66
-    public void StartRound() {
67
-        //player plays a card faceup
68
-        //remove cards from player hand
69
-        //pc plays a card faceup
70
-        //remove cards from npc hand
71
-        //determinewinner
72
-        //add all table cards to winners discard facedown
73
-
74
-        //when player is out of cards
75
-        //shuffle players discard
76
-        //insert discard into hand facedown
77
-    }
78
-
79
-    public void Deal() {
80
-        //while there are cards in the deck
81
-        while(super.getDeck().size() != 0){
82
-            //for each player playing the game
83
-            for(int i = 0; i < super.getPlayers().size(); i ++)
84
-            {
85
-                //grab the card from the top (last added) to the deck
86
-                Card card = super.getDeck().get(super.getDeck().size() - 1);
87
-                //get the player whos hand we are adding the card to
88
-                CardPlayer player = super.getPlayers().get(i);
89
-                //add the card to their hand
90
-                player.getHand().add(card);
91
-
92
-            }
93
-        }
94
-    }
95
-}
1
+//package io.zipcoder.casino;
2
+//
3
+//import java.util.ArrayList;
4
+//import java.util.HashMap;
5
+//import java.util.regex.Pattern;
6
+//
7
+//public class War extends CardGame implements Gamble, Game {
8
+//
9
+//    private ArrayList<Card> tableCards = new ArrayList<Card>();
10
+//
11
+//    War(int minBet, int maxBet, int ante) {
12
+//        super(minBet, maxBet, ante);
13
+//    }
14
+//
15
+//
16
+//    /**
17
+//     * Specific to war methods
18
+//     */
19
+//    public void playCard(){
20
+//        //take a card from the hand
21
+//        //add it to the tablecard face up
22
+//    }
23
+//
24
+//    public void warMethod(){
25
+//        //take three cards from your hand face down
26
+//        //play one card face up
27
+//    }
28
+//
29
+//    public void determineWinner(Card player1card, Card player2card){
30
+//
31
+//    }
32
+//
33
+//    /**
34
+//     * Below 3 Implemented from Gamble
35
+//     */
36
+//    public void Bet(int betAmount) {
37
+//        super.changeTablePot(betAmount);
38
+//    }
39
+//
40
+//    public int Payout(int payoutAmount) {
41
+//        if(super.getWinner() != null){
42
+//            super.getWinner().changeBalance(super.getTablePot());
43
+//        }
44
+//        return 0;
45
+//    }
46
+//
47
+//    public void payAnte() {
48
+//        for(int i = 0; i < super.getPlayers().size(); i ++)
49
+//        {
50
+//            CardPlayer player = super.getPlayers().get(i);
51
+//            player.getPlayer().changeBalance(-super.getAnte());
52
+//        }
53
+//    }
54
+//
55
+//    /**
56
+//     * Below 3 Implemented from Game
57
+//     */
58
+//
59
+//    public void Quit() {
60
+//
61
+//    }
62
+//
63
+//    public void StartGame() {
64
+//        System.out.println("Welcome to war!");
65
+//        super.chooseStatingPlayer();
66
+//        payAnte();
67
+//        Deal();
68
+//        //super.chooseNextTurn();
69
+//    }
70
+//
71
+//    public void StartRound() {
72
+//        //player plays a card faceup
73
+//        //remove cards from player hand
74
+//        //pc plays a card faceup
75
+//        //remove cards from npc hand
76
+//        //determinewinner
77
+//        //add all table cards to winners discard facedown
78
+//
79
+//        //when player is out of cards
80
+//        //shuffle players discard
81
+//        //insert discard into hand facedown
82
+//    }
83
+//
84
+//    public void Deal() {
85
+//        //while there are cards in the deck
86
+//        while(super.getDeck().size() != 0){
87
+//            //for each player playing the game
88
+//            for(int i = 0; i < super.getPlayers().size(); i ++)
89
+//            {
90
+//                //grab the card from the top (last added) to the deck
91
+//                Card card = super.getDeck().get(super.getDeck().size() - 1);
92
+//                //get the player whos hand we are adding the card to
93
+//                CardPlayer player = super.getPlayers().get(i);
94
+//                //add the card to their hand
95
+//                player.getHand().add(card);
96
+//
97
+//
98
+//
99
+//                //remove the card from the deck
100
+//                super.getDeck().remove(card);
101
+//
102
+//            }
103
+//        }
104
+//        System.out.println(super.getPlayersTurn().getPlayer().getName() + "has: " + super.getPlayersTurn().getHand().size() + " cards.");
105
+//    }
106
+//
107
+//}

+ 11
- 0
src/main/java/io/zipcoder/casino/test.java View File

@@ -0,0 +1,11 @@
1
+package io.zipcoder.casino;
2
+
3
+public class test {
4
+
5
+    public static void main(String[] args){
6
+        Console console = new Console();
7
+        console.createAccount();
8
+        console.chooseGame();
9
+    }
10
+
11
+}

+ 6
- 0
src/test/java/io/zipcoder/casino/DiceTest.java View File

@@ -24,4 +24,10 @@ public class DiceTest {
24 24
 
25 25
         Assert.assertEquals(expected,x);
26 26
     }
27
+
28
+    @Test
29
+    public void test()
30
+    {
31
+
32
+    }
27 33
 }