def _get_expected_score(player_rating, opponent_rating):
    """
    https://wikimedia.org/api/rest_v1/media/math/render/svg/51346e1c65f857c0025647173ae48ddac904adcb

    Returns the expected score rounded to two decimals

    For instance, a player with 100 less ELO points than their opponent has an expected score
    of 0.35993500019711494, which is rounded to 0.36 (a 36% 'chance' of winning)
    """

    expected_score = 1 / (1 + 10 ** ((opponent_rating - player_rating) / 400))

    return round(expected_score, 2)