Example #1
0
 public void DealCards(FoolHand fh, CompHand ch) //dealing cards, one at a time to each player: 6 cards each
 {
     for (int i = 0; i < 6; i++)
     {
         fh.AddCard(Deal());
         ch.AddCard(Deal());
     }
 }
Example #2
0
        public FoolHand SortCards(FoolHand fh)
        {
            FoolHand fh1 = new FoolHand();

            fh.cards.Sort();

            for (int i = 0; i < fh.NumCards; i++)
            {
                fh1.AddCard(cards[i]);
            }

            return(fh1);
        }