瀏覽代碼

Did i fix it?

Akeem Cherry 6 年之前
父節點
當前提交
c2aaefdbe6
共有 1 個檔案被更改,包括 30 行新增0 行删除
  1. 30
    0
      src/main/java/io/zipcoder/casino/Player.java

+ 30
- 0
src/main/java/io/zipcoder/casino/Player.java 查看文件

@@ -0,0 +1,30 @@
1
+package io.zipcoder.casino;
2
+
3
+import io.zipcoder.casino.Hand;
4
+
5
+public class Player {
6
+
7
+    private String name;
8
+
9
+    private Hand hand;
10
+
11
+    public Player() {
12
+
13
+        this.hand = new Hand();
14
+    }
15
+
16
+    public void addCard(Card card) {
17
+
18
+        hand.add(card);
19
+    }
20
+
21
+    public Hand getHand() {
22
+
23
+        return hand;
24
+    }
25
+
26
+    public void setHand(Hand hand) {
27
+
28
+        this.hand = hand;
29
+    }
30
+}