def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() print(f'{add_color("What would you like to do?", "WARNING")}') choice = input('> ') if choice == "1": annex_habitat(keahua) if choice == "2": clear() release_animal(keahua, False) if choice == "3": pass if choice == "4": pass if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()
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()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() choice = input(">> ") if choice == "1": annex_biome(keahua) if choice == "2": release_animal(keahua) if choice == "3": # Define Logic to Clear The Console before running this. animal_to_feed_menu(keahua) # Need to add Logic for This option to do something other than nothing. Need to also build menu for htis to go to once it is used. if choice == "4": cultivate_plant_menu(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() if choice == "4": cultivate_plant(keahua) if choice == "5": build_facility_report(keahua) if choice != "6": main_menu()
def main_menu(): """Show Keahua Action Options Arguments: None """ build_menu() choice = input(">_ ") # Will print a menu of biomes with conditionals to add the selected # biome to keahua's array for that biome. if choice == "1": annex_biome(keahua) # Will print list of animals to release to a biome. Conditionals based # on animal selected to print the biomes for that animal, and the len() # of the animals arr for those biomes to make sure there's room. if choice == "2": release_animal(keahua) if choice == "3": food_menu() # keahua if choice == "4": pass 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 animal_max_capacity(self, animal, obj): if len(self.animals) >= (self.max_capacity_of_animals): print(f'\n**** That biome is not large enough ****') input(f'**** Please choose another one ****') os.system('cls' if os.name == 'nt' else 'clear') release_animal(obj) elif len(self.animals) < (self.max_capacity_of_animals): self.add_animal(animal)
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()