Esempio n. 1
0
 public bool TakeCard(Card card)
 {
     Hand.Add(card);
     return(Hand.IsBusted);
 }
        public Hand Clone()
        {
            Hand tmp = new Hand(cardPosition);

              for (int x = 0; x < cardPosition; x++)
              tmp.Add(cards[x]);

              return tmp;
        }
        // ICloneable
        Object ICloneable.Clone()
        {
            Hand tmp = new Hand(cardPosition);

              for (int x = 0; x < cardPosition; x++)
              tmp.Add(cards[x]);

              return tmp;
        }
Esempio n. 4
0
 public void AddCard(Card card)
 {
     Hand.Add(card);
 }