Browse Source

adding pseudo code

Jonathan Hinds 6 years ago
parent
commit
cfa5480049

+ 2
- 0
src/main/java/io/zipcoder/casino/CardGame.java View File

21
 
21
 
22
     public void Shuffle(){
22
     public void Shuffle(){
23
 
23
 
24
+        //shuffle the card stack
25
+
24
     }
26
     }
25
 
27
 
26
     public void faceDown(Card card){
28
     public void faceDown(Card card){

+ 10
- 3
src/main/java/io/zipcoder/casino/Console.java View File

2
 
2
 
3
 public class Console {
3
 public class Console {
4
     private Game[] games;
4
     private Game[] games;
5
+    private Player player;
5
 
6
 
6
     Console(){}
7
     Console(){}
7
 
8
 
8
-    public void createAccount(){
9
-
9
+    public void createAccount()
10
+    {
11
+        /*
12
+            ask the player for their name.
13
+            ask the player for their starting balance
14
+            create the player.
15
+         */
10
     }
16
     }
11
 
17
 
12
-    public void chooseGame(String gameName){
18
+    public void chooseGame(String gameName)
19
+    {
13
         /*
20
         /*
14
             ask the user for min max bet at the table
21
             ask the user for min max bet at the table
15
             ask the user which game they would like to play
22
             ask the user which game they would like to play

+ 5
- 0
src/main/java/io/zipcoder/casino/DicePlayer.java View File

6
     private Player player;
6
     private Player player;
7
     Dice[] cup = new Dice[5];
7
     Dice[] cup = new Dice[5];
8
     ScoreSheet scoreSheet = new ScoreSheet();
8
     ScoreSheet scoreSheet = new ScoreSheet();
9
+
10
+    public DicePlayer(Player player){
11
+        this.player = player
12
+    }
13
+
9
 }
14
 }