skycalc/calculator.py
def simulate_balanced_training(original_skill_levels,
                               current_level, goal_level):
    """Return skill training data for a balanced training method.

    All skills are trained equally.
    Attributes:
        original_skill_levels: dict containing current levels of used skills.
        current_level (int): current character level
        goal_level (int): goal level
    """

    def least_leveled(skill_dict):
        """Return the skill that was trained least."""
        stripped_dict = {s: skill_dict[s]["Times Leveled"] for s in skill_dict}
        return min(stripped_dict, key=stripped_dict.get)

    return simulate_training(original_skill_levels,
                             current_level, goal_level,
                             least_leveled)
Return skill training data for a balanced training method.

    All skills are trained equally.
    Attributes:
        original_skill_levels: dict containing current levels of used skills.
        current_level (int): current character level
        goal_level (int): goal level
    
Return skill training data for a balanced training method.
All skills are trained equally.
Return skill training data for a balanced training method . All skills are trained equally .
def simulate_balanced_training(original_skill_levels,
                               current_level, goal_level):
    def least_leveled(skill_dict):
        stripped_dict = {s: skill_dict[s]["Times Leveled"] for s in skill_dict}
        return min(stripped_dict, key=stripped_dict.get)
    return simulate_training(original_skill_levels,
                             current_level, goal_level,
                             least_leveled)
def simulate_balanced_training ( original_skill_levels , current_level , goal_level ) : def least_leveled ( skill_dict ) : """Return the skill that was trained least.""" stripped_dict = { s : skill_dict [ s ] [ "Times Leveled" ] for s in skill_dict } return min ( stripped_dict , key = stripped_dict . get ) return simulate_training ( original_skill_levels , current_level , goal_level , least_leveled )
Return skill training data for a balanced training method.
Return skill training data for a balanced training method .
"""Return skill training data for a balanced training method.

    All skills are trained equally.
    Attributes:
        original_skill_levels: dict containing current levels of used skills.
        current_level (int): current character level
        goal_level (int): goal level
    """ """Return the skill that was trained least."""
original_skill_levels
dict containing current levels of used skills.
dict containing current levels of used skills .
current_level
current character level
current character level
goal_level
None