// Tournament Strategy // Strategy #1, the player participates if anyone, including themselves, can stand to rank up public int participateInTourney(List <Player> players, int shields, Controller game) { Debug.Log("I was asked If I want to participate in a tournament!"); strategyUtil strat = new strategyUtil(); if (strat.canSomeoneRankUp(players, shields)) { Debug.Log("I'm going to say yes... because its possible for someone to rank up during this tourney!"); return(1); } Debug.Log("I'm going to say no... because its NOT possible for someone to rank up during this tourney!"); return(0); }
public List <Card> playTournament(List <Player> players, List <Card> hand, int baseBP, int shields) { strategyUtil strat = new strategyUtil(); // This AI evaluates wheteher there is a potential rank up on this tournament if (strat.canSomeoneRankUp(players, shields)) { // If there is, he considers it high stakes and plays his strongest hand return(highStakesTournament(hand, players)); } // else he considers it low stakes and plays only duplicate weapons return(lowStakesTournament(hand)); }
// Quest Strategy public int sponsorQuest(List <Player> players, int stages, List <Card> hand, Controller game) { strategyUtil strat = new strategyUtil(); if (strat.canSomeoneRankUp(players, stages)) { return(0); } if (strat.canISponsor(hand, stages)) { return(1); } return(0); }
// Quest Strategy public int sponsorQuest(List <Player> players, int stages, List <Card> hand, Controller game) { strategyUtil strat = new strategyUtil(); // if somebody can rank up, we return false to decline sponsoring the quest if (strat.canSomeoneRankUp(players, stages)) { return(0); } if (strat.canISponsor(hand, stages)) { return(1); } return(0); }