6 次程式碼提交

作者 SHA1 備註 提交日期
  Nhu Nguyen 5cc545c1c1 Merge branch 'master' of zipcode.rocks:Test/ZCW-OOP-Casino into casino 6 年之前
  miscbits a3881d56c1 Merge branch 'master' of miscbits/ZCW-OOP-Casino into master 6 年之前
  miscbits c6325c3bd7 SURPRISE! 🍾 6 年之前
  miscbits 41b20e33b4 Merge branch 'master' of miscbits/ZCW-OOP-Casino into master 6 年之前
  miscbits f483fac9ed Merge branch 'rank' of nhu313/ZCW-OOP-Casino into master 6 年之前
  miscbits 5c314bf624 Added Suit Enum class to main src folder 6 年之前
共有 2 個文件被更改,包括 24 次插入1 次删除
  1. 2
    1
      src/main/java/io/zipcoder/casino/Casino.java
  2. 22
    0
      src/main/java/io/zipcoder/casino/Suit.java

+ 2
- 1
src/main/java/io/zipcoder/casino/Casino.java 查看文件

@@ -5,6 +5,7 @@ public class Casino {
5 5
 
6 6
     public static void main(String[] args) {
7 7
         Casino casino = new Casino();
8
-        
8
+        System.out.println("Casino is ready to go");
9
+
9 10
     }
10 11
 }

+ 22
- 0
src/main/java/io/zipcoder/casino/Suit.java 查看文件

@@ -0,0 +1,22 @@
1
+package io.zipcoder.casino;
2
+
3
+public enum Suit {
4
+    CLUBS('\u2660'),
5
+    DIAMONDS('\u2666'),
6
+    HEARTS('\u2665'),
7
+    SPADES('\u2663');
8
+
9
+    private Character symbol;
10
+
11
+    Suit(char c) {
12
+        this.symbol = c;
13
+    }
14
+
15
+    public Character getSymbol() {
16
+        return symbol;
17
+    }
18
+
19
+    public void setSymbol(Character symbol) {
20
+        this.symbol = symbol;
21
+    }
22
+}