Example #1
0
        private int MaxCard(List <Card> cards)
        {
            int       maxIndex = 0;
            ECardCost maxCost  = 0;

            for (int i = 0; i < cards.Count; i++)
            {
                if (cards[i].GetCost() > maxCost)
                {
                    maxIndex = i;
                    maxCost  = cards[i].GetCost();
                }
            }
            return(maxIndex);
        }
Example #2
0
 public Card(ECardSuit suit, ECardCost cost)
 {
     this.suit = suit;
     this.cost = cost;
 }