public CardSet Deal(int amount) { CardSet c = new CardSet(); if (amount > Cards.Count) { amount = Cards.Count; } for (int i = 0; i < amount; i++) { c.Add(Cards[i]); Cards.RemoveAt(i); } return(c); }
public void Add(CardSet cards) { Add(cards.Cards.ToArray()); }
public Player(string name, CardSet cardSet) : this(name) { PlayerCards = cardSet; }