summaryrefslogtreecommitdiff
path: root/aux/Hand.java
blob: ef8da6cb462c15bb961a12bcd02d6b3408bc9720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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;
    }
}