def decypher(text):
    """
    Decypher file name into descriptive label for legend
    """

    # name shortcuts
    help_dict = {"h": "Target/Hunt AI", "p": "Probabilistic AI", "r": "Random AI"}
    final = ""
    t_split = text.split("-")
    final += help_dict[t_split[0]]

    # hunt/target AI branch
    if t_split[0] == "h":
        if t_split[1] == "True":
            final += ", parity"
        if t_split[2] == "True":
            final += ", cheating"
            final += "(knows "+t_split[3]+" ships)"

    # probabilistic AI branch
    if t_split[0] == "p":
        if t_split[1] == "True":
            final += ", cheating"
            final += "(knows "+t_split[2]+" ships)"
    return final