Sfoglia il codice sorgente

Merge branch 'Working' into Blackjack

ThuyKhong 6 anni fa
parent
commit
cec6afab52

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

@@ -1,8 +1,19 @@
1 1
 package io.zipcoder.casino.cardgames.cards;
2 2
 
3 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
 }