public Deck() { int i; for (i = 0; i < 52; i++) { eRankType rank = (eRankType)(i % 13); eSuitType suit = (eSuitType)(i / 13); Card card = new Card(rank, suit); cards[i] = card; } Shuffle(); }
public Card(eRankType pRank, eSuitType pSuit) { Rank = pRank; Suit = pSuit; }