ソースを参照

adding pseudo code

Jonathan Hinds 6 年 前
コミット
cfa5480049
共有3 個のファイルを変更した17 個の追加3 個の削除を含む
  1. 2
    0
      src/main/java/io/zipcoder/casino/CardGame.java
  2. 10
    3
      src/main/java/io/zipcoder/casino/Console.java
  3. 5
    0
      src/main/java/io/zipcoder/casino/DicePlayer.java

+ 2
- 0
src/main/java/io/zipcoder/casino/CardGame.java ファイルの表示

@@ -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 ファイルの表示

@@ -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 ファイルの表示

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