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); }
public Card(ECardSuit suit, ECardCost cost) { this.suit = suit; this.cost = cost; }