diff options
Diffstat (limited to 'aux/Hand.java')
-rw-r--r-- | aux/Hand.java | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/aux/Hand.java b/aux/Hand.java new file mode 100644 index 0000000..ef8da6c --- /dev/null +++ b/aux/Hand.java @@ -0,0 +1,28 @@ +package mahjong.aux; + +/** + * Created by joe on 12/1/14. + */ + +public class Hand { + static final int total = 13; + Card[] cards = new Card[13]; + + // Constructors + Hand(){} + Hand(String[] cardNames) + { + for (int i = 0; i<total;++i) + cards[i] = new Card(cardNames[i]); + } + Hand(Card[] cards) + { + this.cards = cards; + } + + // Some operation + int calTing() + { + return 0; + } +} |