public Ranking Generate_ranking(RankingDataBasis data_basis) { var ranking = new Ranking(data_basis.Players); var matches = Filter_valid_matches(data_basis.Matches).ToList(); Apply_to_match(matches, match => Fill_matches_count(ranking, match)); Apply_to_match(matches, match => Fill_matches_stats(ranking, match, data_basis.Options)); Fill_walkovers(ranking, data_basis.Walkover_played); Apply_to_match(matches, match => Fill_Q2(ranking, match)); return(ranking); }
public IEnumerable <RankingRow> Calculate_ranking(RankingDataBasis data_basis) { var ranking_generator = new RankingGenerator(); return(ranking_generator.Generate_ranking(data_basis).Ranking_rows); }