Пример #1
0
def main_menu():
    """
    Show Keahua title with main menu options
    Handle user-selected menu option
    Arguments: None
    """
    build_menu()
    print("Choose a KILLER option.")
    choice = input(">> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        cultivate_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)
        pass

    # NOT NEEDED - if user types 6, the code will just end
    # if choice == "6":
    #     exit()

    if choice != "6":
        main_menu()
Пример #2
0
def main_menu():
    """Show Keahua Action Options
    Arguments: None
    """
    build_menu()
    print(
        colorizer.colorize('\nChoose a KILLER option.',
                           colors.text_colors['WARNING'], '', ''))
    choice = input("> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release(keahua, 'animal')

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        release(keahua, 'plant')

    if choice == "5":
        build_facility_report(keahua)
        pass

    if choice != "6":
        main_menu()
Пример #3
0
def main_menu():
    """Show Keahua Action Options
    Arguments: None
    """

    build_menu()
    choice = input(">> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        cultivate(keahua)

    if choice == "5":
        build_facility_report(keahua)
        pass

    if choice != "6":
        main_menu()
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu()
    choice = input(">> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        add_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)

    if choice == "6":
        write_text(keahua)

    #"Secret Seven": seed data with tester script
    if choice == "7":
        mass_add_to_environs(keahua)

    if choice == "0":
        clear_text()

    if choice != "6" and choice != "0":
        main_menu()
def main_menu():
    """Show Keahua Action Options

    Arguments: None
    """
    build_menu()
    choice = input("\n Choose a KILLER option \n \033[1;31;40m> \033[1;37;40m")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        cultivate_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)

    if choice != "6":
        main_menu()
def main_menu():

    build_menu()
    choice = input(">> ")

    if choice == "1":
        annex_habitat(keahua)

    if choice == "2":
        release_animal(keahua)

    if choice == "3":
        feed_animal(keahua)

    if choice == "4":
        cultivate_plant(keahua)

    if choice == "5":
        build_facility_report(keahua)

    if choice != "6":
        main_menu()