def to_stars(value: int):
    """ Retrieve string of stars emojis based in certain threshold rule

        Parameters
        ----------
        value: int
            number of certain param of an item of the game
        Returns
        -------
        str
            String of stars emojis
    """
    if value >= 40:
        return ':star: :star: :star:'
    elif 20 >= value > 40:
        return ':star: :star:'
    else:
        return ':star:'