def add_homeruns(user, player_id, hrs):
    """Add a hr by a player

    Parameters:
        user: the dictionary of the user (dict)
        player_id: the player id (int)
        hrs: the number of hr hit (int)
    Returns:
        user: the update user (dict)
    """
    for __ in range(0, hrs):
        user['game']['hr'].append(player_id)
    return user