Browse Source

Merge branch 'Working' into Blackjack

ThuyKhong 6 years ago
parent
commit
cec6afab52
1 changed files with 15 additions and 4 deletions
  1. 15
    4
      src/main/java/io/zipcoder/casino/cardgames/cards/CardSuit.java

+ 15
- 4
src/main/java/io/zipcoder/casino/cardgames/cards/CardSuit.java View File

1
 package io.zipcoder.casino.cardgames.cards;
1
 package io.zipcoder.casino.cardgames.cards;
2
 
2
 
3
 public enum CardSuit {
3
 public enum CardSuit {
4
-    HEARTS,
5
-    SPADES,
6
-    CLUBS,
7
-    DIAMONDS
4
+    HEARTS('♥'),
5
+    SPADES('♠'),
6
+    CLUBS('♣'),
7
+    DIAMONDS('♦');
8
+
9
+    private char cardGraphic;
10
+
11
+    CardSuit (char cardGraphic) {
12
+        this.cardGraphic = cardGraphic;
13
+    }
14
+
15
+    public char getCardGraphic() {
16
+        return cardGraphic;
17
+    }
18
+
8
 }
19
 }