public static void PrintSummary(List <ClanBossBattleResult> results, Champion stunTarget, CBBRA flags)
        {
            ClanBossBattleResultsAnalysis.PrintResults(results, flags);
            int lastKillableTurn = ClanBossBattleResultsAnalysis.LastClanBossTurnThatHitKillableChampion(results, stunTarget);

            Console.WriteLine("Last turn where there was a hit on a champion that wasn't unkillable:  {0}", lastKillableTurn);
            PrintAttacksPerChampion(results);
        }
示例#2
0
        public IEnumerable <List <Champion> > Search(ClanBoss.Level level)
        {
            foreach (List <Champion> cs in this.GetChampionLists())
            {
                List <ChampionInBattle> champions = new List <ChampionInBattle>();
                foreach (Champion champ in cs)
                {
                    Tuple <List <Constants.SkillId>, List <Constants.SkillId> > policies = this.skillPoliciesByChampionName[champ.Name];
                    champions.Add(new ChampionInBattle(champ, policies.Item1, policies.Item2));
                }

                ClanBossBattle battle = new ClanBossBattle(level, champions);
                List <ClanBossBattleResult> results = battle.Run();
                int lastKillableTurn = ClanBossBattleResultsAnalysis.LastClanBossTurnThatHitKillableChampion(results, Utils.FindSlowestChampion(cs));
                if (lastKillableTurn < 10)
                {
                    yield return(cs);
                }
            }
        }