Exemplo n.º 1
0
 private bool fits_criteria(Match match, HLTVTeam team_a, HLTVTeam team_b)
 {
     if (team_a.rating.StandardDeviation > 2.2 || team_b.rating.StandardDeviation > 2.2) return false;
     return true;
 }
Exemplo n.º 2
0
        private bool reset_team_ranking(HLTVTeam team, DateTime cur)
        {
            if (team.reset_dates.Count == 0) return false;

            if (cur >= team.reset_dates.Peek().Date)
            {
                team.reset_dates.Pop();
                return true;
            }

            return false;
        }