lck.common 0.4.4 documentation

This Page

lck.math

lck.math

Various math related utilities.

lck.math.elo_rating

rate([winner_rank, loser_rank, penalize_loser]) -> (new_winner_rank, new_loser_rank)

Computes the new ratings after a game. winner_rank and loser_rank must be integers, default is 1000. If penalize_loser is True (the default), points added to the winner are subtracted from the loser.