public Deck() { deck = new Card[52]; for (int i = 0; i < deck.Length; i++) { deck[i] = new Card(new Suit(i / 13 + 1), new Pips(i % 13 + 2)); } }
public Deck() { cards = new Card[52]; int k = 0; for (int i = 2; i < 15; i++) { for (int j = 0; j < 4; j++) { cards[k] = new Card(j, i); k++; } } Shuffle(); }
public void setCard(int i, Card c) { cards[i] = c; }
public Card(Card c) { this.suit = c.suit; this.pip = c.pip; this.discarded = false; }
public void setOneCard(Card card) { log.Debug("setOneCard(Card " + card.ToString() + ") - Begin"); cards.Add(card); log.Debug("setOneCard() - End"); }