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