Exemple #1
0
def rank_rescue1_weighted(db):
    scores_a = rescue1_a.decode_scores(db)
    scores_b = rescue1_b.decode_scores(db)
    ranks = aggregate_scores(
        scores_a, WeightedRank.wrap_aggregate(2, RescueMaxRank.from_scores))
    ranks.update(
        aggregate_scores(
            scores_b, WeightedRank.wrap_aggregate(1,
                                                  RescueMaxRank.from_scores)))
    return sort_ranking(ranks.items())
Exemple #2
0
 def rescue_ranking(db):
     scores = decode_block_scores(db, block1, block2, hide_shadows=True)
     ranks = aggregate_scores(scores, RescueMaxRank.from_scores)
     return sort_ranking(ranks.items())
Exemple #3
0
 def ranking(db):
     scores = block.decode_scores(db, hide_shadows=True)
     ranks = aggregate_scores(scores, XSumoScoreRank.from_scores)
     return sort_ranking(ranks.items())
Exemple #4
0
 def ranking_tb(db):
     scores = block.decode_scores(db, hide_shadows=True)
     ranks = aggregate_scores(scores, XSumoScoreRank.from_scores)
     tiebreaks = tiebreak_ranking(db, block.id)
     combined = combine_ranks(ranks, tiebreaks)
     return sort_ranking(combined.items())
Exemple #5
0
def rank_rescue1(db):
    scores = decode_block_scores(db, rescue1_a, rescue1_b)
    ranks = aggregate_scores(scores, RescueMaxRank.from_scores)
    return sort_ranking(ranks.items())
Exemple #6
0
def rank_xsumo_as(db):
    scores = xsumo_alkusarja.decode_scores(db)
    ranks = aggregate_scores(scores, XSumoScoreRank.from_scores)
    return sort_ranking(ranks.items())
Exemple #7
0
def rank_xsumo_tb(db):
    scores = xsumo.decode_scores(db)
    ranks = aggregate_scores(scores, XSumoScoreRank.from_scores)
    tiebreaks = tiebreak_ranking(db, "xsumo.tb")
    combined = combine_ranks(ranks, tiebreaks)
    return sort_ranking(combined.items())
Exemple #8
0
def rank_xsumo_wins(db):
    scores = xsumo.decode_scores(db)
    ranks = aggregate_scores(scores, XSumoWinsRank.from_scores)
    return sort_ranking(ranks.items())