Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void Add(CardSet cards)
 {
     Add(cards.Cards.ToArray());
 }
Ejemplo n.º 3
0
 public Player(string name, CardSet cardSet) : this(name)
 {
     PlayerCards = cardSet;
 }