Procházet zdrojové kódy

adding pseudo code

Jonathan Hinds před 6 roky
rodič
revize
cfa5480049

+ 2
- 0
src/main/java/io/zipcoder/casino/CardGame.java Zobrazit soubor

@@ -21,6 +21,8 @@ public abstract class CardGame {
21 21
 
22 22
     public void Shuffle(){
23 23
 
24
+        //shuffle the card stack
25
+
24 26
     }
25 27
 
26 28
     public void faceDown(Card card){

+ 10
- 3
src/main/java/io/zipcoder/casino/Console.java Zobrazit soubor

@@ -2,14 +2,21 @@ package io.zipcoder.casino;
2 2
 
3 3
 public class Console {
4 4
     private Game[] games;
5
+    private Player player;
5 6
 
6 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 21
             ask the user for min max bet at the table
15 22
             ask the user which game they would like to play

+ 5
- 0
src/main/java/io/zipcoder/casino/DicePlayer.java Zobrazit soubor

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