// This sets up an early Foe Encounter, a Foe encounter before the last round of a Quest. // This strategy is to simply play the lowest BP foe from the hand with NO weapons attached public List <Card> setUpEarlyFoeEncounter(List <Card> hand, string questFoe) { strategyUtil strat = new strategyUtil(); // get the list of foe cards from the user's hand List <Card> foes = new List <Card>(); for (var i = 0; i < hand.Count; i++) { if (hand[i].type == "Foe Card") { foes.Add(hand[i]); } } foes = strat.sortFoesByAscendingOrder(foes, questFoe); // make a list, add the lowest BP foe and return it List <Card> foeEncounter = new List <Card>(); foeEncounter.Add(foes[0]); hand.Remove(foes[0]); return(foeEncounter); }