Esempio n. 1
0
        //TODO move eventually
        private void SimFights(int numFights)
        {
            for (int fightNight = 0; fightNight < numFights; ++fightNight)
            {
                LOGGER.Debug($"Fight Night {fightNight}");
                List <Fight> schedule = new List <Fight>();
                foreach (WeightClass wc in WeightClass.AllWeightClasses())
                {
                    schedule.AddRange(ScheduleFights(wc));
                }

                var outcomes = FightSim.SimulateManyFights(schedule);
                foreach (var outcome in outcomes)
                {
                    outcome.Fighters[0].UpdateRecord(outcome);
                    outcome.Fighters[1].UpdateRecord(outcome);
                    Rating.CalculateRatingChange(outcome);
                    //  FighterPopularity.UpdatePopularity(outcome);
                }
            }
        }