Exemple #1
0
 public void DrawNewHand(Deck deck)
 {
     Hand   = new Cards();
     Chosen = new Cards();
     for (int i = 0; i < 17; i++)
     {
         Hand.Add(deck.Draw());
     }
     if (Landlord)
     {
         for (int i = 0; i < 3; i++)
         {
             Hand.Add(deck.Draw());
         }
     }
     Hand.Sort();
 }
Exemple #2
0
 public virtual void Sort()
 {
     Cards.Sort();
 }
Exemple #3
0
 public virtual void Sort(IComparer <PlayingCard> sorter)
 {
     Cards.Sort(sorter);
 }
Exemple #4
0
 public void DrawNewHand(Deck deck)
 {
     Hand = new Cards();
       Chosen = new Cards();
       for (int i = 0; i < 17; i++)
     Hand.Add(deck.Draw());
       if (Landlord)
       {
       for (int i = 0; i < 3; i++)
       Hand.Add(deck.Draw());
       }
       Hand.Sort();
 }