def annex_habitat(arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    header("Annex Habitat")
    
    print("1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Mountain")
    print("6. Forest")
    choice = input("Choose a KILLER habitat > ")
    if choice == "1":
        river = River()
        arboretum.rivers.append(river)

    if choice == "2":
        swamp = Swamp()
        arboretum.swamps.append(swamp)

    if choice == "3":
        coastline = Coastline()
        arboretum.coastlines.append(coastline)

    if choice == "4":
        grassland = Grassland()
        arboretum.grasslands.append(grassland)

    if choice == "5":
        mountain = Mountain()
        arboretum.mountains.append(mountain)

    if choice == "6":
        forest = Forest()
        arboretum.forests.append(forest)
Example #2
0
def choosing_habitat(arboretum, choice):
    if choice == "1":
        river = River('River')
        arboretum.habitats['rivers'].append(river)
    elif choice == "2":
        swamp = Swamp('Swamp')
        arboretum.habitats['swamps'].append(swamp)
    elif choice == "3":
        coastline = Coastline('Coastline')
        arboretum.habitats['coastlines'].append(coastline)
    elif choice == "4":
        grassland = Grassland('Grassland')
        arboretum.habitats['grasslands'].append(grassland)
    elif choice == "5":
        mountain = Mountain('Mountain')
        arboretum.habitats['mountains'].append(mountain)
    elif choice == "6":
        forest = Forest('Forest')
        arboretum.habitats['forests'].append(forest)
    else:
        os.system('cls' if os.name == 'nt' else 'clear')
        print(
            colorizer.colorize('\nInvalid Choice.', colors.text_colors['FAIL'],
                               '', ''))
        input("\nPress any key to continue...")
        return
Example #3
0
def annex_habitat(arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    print("1. Mountain")
    print("2. Swamp")
    print("3. Grassland")
    print("4. Forest")
    print("5. River")
    print("6. Coastline")
    print("")
    print("Choose what you want to annex.")
    choice = input("> ")
    
    os.system('cls' if os.name == 'nt' else 'clear')
    if choice == "1":
        mountain = Mountain()
        arboretum.mountains.append(mountain)
    elif choice == "2":
        swamp = Swamp()
        arboretum.swamps.append(swamp)
    elif choice == "3":
        grassland = Grassland()
        arboretum.grasslands.append(grassland)
    elif choice == "4":
        forest = Forest()
        arboretum.forests.append(forest)
    elif choice == "5":
        river = River()
        arboretum.rivers.append(river)
    elif choice == "6":
        coastline = Coastline()
        arboretum.coastlines.append(coastline)
    else:
        input("That's not a valid option. Press any key to return to the main menu...")
def annex_habitat(arboretum):
    clear_screen()

    build_menu()
    choice = input("Choose your habitat > ")
    name = input("What would you like to name it? > ")
    if choice == "1":
        mountain = Mountain(name)
        arboretum.biomes["Mountains"].append(mountain)
        os.system(f'say you have annexed {name} Mountain!' if os.name != 'nt' else '')
    if choice == "2":
        swamp = Swamp(name)
        arboretum.biomes["Swamps"].append(swamp)
        os.system(f'say you have annexed {name} Swamp!' if os.name != 'nt' else '')
    if choice == "3":
        grassland = Grassland(name)
        arboretum.biomes["Grasslands"].append(grassland)
        os.system(f'say you have annexed {name} grassland!' if os.name != 'nt' else '')
    if choice == "4":
        forest = Forest(name)
        arboretum.biomes["Forests"].append(forest)
        os.system(f'say you have annexed {name} forest!' if os.name != 'nt' else '')
    if choice == "5":
        river = River(name)
        arboretum.biomes["Rivers"].append(river)
        os.system(f'say you have annexed {name} river!' if os.name != 'nt' else '')
    if choice == "6":
        coastline = Coastline(name)
        arboretum.biomes["Coastlines"].append(coastline)
        os.system(f'say you have annexed {name} coastline!' if os.name != 'nt' else '')

    return
def annex_biome(arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    print("1. Mountain")
    print("2. Swamp")
    print("3. Grassland")
    print("4. Forest")
    print("5. River")
    print("6. Coastline")

    choice = input("\nChoose what you want to annex.\n >_ ")

    if choice == "1":
        mountain = Mountain()
        arboretum.mountains.append(mountain)
    if choice == "2":
        swamp = Swamp()
        arboretum.swamps.append(swamp)
    if choice == "3":
        grassland = Grassland()
        arboretum.grasslands.append(grassland)
    if choice == "4":
        forest = Forest()
        arboretum.forests.append(forest)
    if choice == "5":
        river = River()
        arboretum.rivers.append(river)
    if choice == "6":
        coastline = Coastline()
        arboretum.coastlines.append(coastline)
def annex_habitat(arboretum):
    #os.system('cls' if os.name == 'nt' else 'clear')
    print("1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Forest")
    print("6. Mountain")

    biome = input("Choose your habitat > ")
    name = input("Name > ")

    if biome == "1":
        new_biome = River(name)
        arboretum.add_biome(new_biome)
        for river in arboretum.rivers:
            print(river)
    if biome == "2":
        new_biome = Swamp(name)
        arboretum.add_biome(new_biome)
    if biome == "3":
        new_biome = Coastline(name)
        arboretum.add_biome(new_biome)
    if biome == "4":
        new_biome = Grassland(name)
        arboretum.add_biome(new_biome)
    if biome == "5":
        new_biome = Forest(name)
        arboretum.add_biome(new_biome)
    if biome == "6":
        new_biome = Mountain(name)
        arboretum.add_biome(new_biome)

    print(f"Successfully annexed {name} to the arboretum.")
def annex_habitat(arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    print("1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Forest")
    print("6. Mountain")

    choice = input("\nChoose your habitat > ")

    if choice == "1":
        river = River()
        arboretum.rivers.append(river)
    elif choice == "2":
        swamp = Swamp()
        arboretum.swamps.append(swamp)
    elif choice == "3":
        coastline = Coastline()
        arboretum.coastlines.append(coastline)
    elif choice == "4":
        grassland = Grassland()
        arboretum.grasslands.append(grassland)
    elif choice == "5":
        forest = Forest()
        arboretum.forests.append(forest)
    elif choice == "6":
        mountain = Mountain()
        arboretum.mountains.append(mountain)

    else:
        input("\nThat was a bad input, try again next time, fool! \nPress any key to return to the menu...")
        return
    def annex_habitat(self):
        os.system('cls' if os.name == 'nt' else 'clear')

        for habitat in self.avail_habitats:
            print(f"{self.avail_habitats.index(habitat) + 1}. {habitat}")

        choice = input("\nChoose what you want to annex \n>")

        if choice == "1":
            habitat = Mountain()

        elif choice == "2":
            habitat = Swamp()

        elif choice == "3":
            habitat = Grassland()

        elif choice == "4":
            habitat = Forest()

        elif choice == "5":
            habitat = River()

        elif choice == "6":
            habitat = Coastline()

        else:
            print("That is not a valid choice")
            return

        self.habitats_dict[type(habitat).__name__].append(habitat)
Example #9
0
def annex_habitat(Arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    print("+-++-++-++-++-++-++-++-++-++-++-++")
    print("+ C H O O S E  A  H A B I T A T +")
    print("+-++-++-++-++-++-++-++-++-++-++-++")
    print("1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Forest")
    print("6. Mountain")

    choice = input("Choose your habitat > ")

    if choice == "1":
        river = River()
        Arboretum.rivers.append(river)
        print('New river habitat was created!')
        input('Please press any key to continue...')
    if choice == "2":
        swamp = Swamp()
        Arboretum.swamps.append(swamp)
        print('New swamp habitat was created!')
        input('Please press any key to continue...')

    if choice == "3":
        coastline = Coastline()
        Arboretum.coastlines.append(coastline)
        print('New coastline habitat was created!')
        input('Please press any key to continue...')

    if choice == "4":
        grassland = Grassland()
        Arboretum.grasslands.append(grassland)
        print('New grassland habitat was created!')
        input('Please press any key to continue...')

    if choice == "5":
        forest = Forest()
        Arboretum.forests.append(forest)
        print('New forest habitat was created!')
        input('Please press any key to continue...')

    if choice == "6":
        mountain = Mountain()
        Arboretum.mountains.append(mountain)
        print('New mountain habitat was created!')
        input('Please press any key to continue...')
Example #10
0
def annex_habitat(arboretum, menu, message_text):
    os.system('cls' if os.name == 'nt' else 'clear')
    print(" +-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-+")
    print(" |          A n n e x     a     B i o m e          |")
    print(" +-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-++-+")
    print()
    print("0. Main Menu")
    print("1. Coastline")
    print("2. Forest")
    print("3. Grassland")
    print("4. Mountain")
    print("5. River")
    print("6. Swamp")
    print()
    print(message_text)
    choice = input("> ")

    if choice == "1":
        coastline = Coastline()
        arboretum.coastlines.append(coastline)
        menu(f"~+ You just annexed a new Coastline biome +~\n{coastline.image}") 
    elif choice == "2":
        forest = Forest()
        arboretum.forests.append(forest)
        menu(f"~+ You just annexed a new Forest biome +~\n{forest.image}") 
    elif choice == "3":
        grassland = Grassland()
        arboretum.grasslands.append(grassland)
        menu(f"~+ You just annexed a new Grassland biome +~\n{grassland.image}") 
    elif choice == "4":
        mountain = Mountain()
        arboretum.mountains.append(mountain)
        menu(f"~+ You just annexed a new Mountain biome +~\n{mountain.image}") 
    elif choice == "5":
        river = River()
        arboretum.rivers.append(river)
        menu(f"~+ You just annexed a new River biome +~\n{river.image}") 
    elif choice == "6":
        swamp = Swamp()
        arboretum.swamps.append(swamp)
        menu(f"~+ You just annexed a new Swamp biome +~\n{swamp.image}") 
    elif choice == "0":
        menu()   
    else: 
        annex_habitat(arboretum, menu, message_text = "* Please input one of the numbers listed above *")
Example #11
0
def annex_habitat(Arboretum):
    os.system('cls' if os.name == 'nt' else 'clear')
    print("\u001b[47m\u001b[30;1m+-++-++-++-++-++-++-++-++-++-++-++")
    print("+ C H O O S E  A  H A B I T A T  +")
    print("+-++-++-++-++-++-++-++-++-++-++-++\u001b[0m\n")
    print("\u001b[32m1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Forest")
    print("6. Mountain\u001b[0m")

    choice = input("Choose your habitat > ")

    if choice == "1":
        river = River()
        print('Your river was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.rivers.append(river)
    if choice == "2":
        swamp = Swamp()
        print('Your swamp was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.swamps.append(swamp)
    if choice == "3":
        coastline = Coastline()
        print('Your coastline was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.coastlines.append(coastline)
    if choice == "4":
        grassland = Grassland()
        print('Your grassland was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.grasslands.append(grassland)
    if choice == "5":
        forest = Forest()
        print('Your forest was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.forests.append(forest)
    if choice == "6":
        mountain = Mountain()
        print('Your mountain was added to the arboretum!')
        input("Press enter to continue...")
        Arboretum.mountains.append(mountain)
Example #12
0
def annex_habitat(arboretum):
    print_banner()
    # MENU OPTIONS
    print("HABITAT OPTIONS:")
    print("")
    print("1. River")
    print("2. Swamp")
    print("3. Coastline")
    print("4. Grassland")
    print("5. Mountain")
    print("6. Forest")
    print("")
    choice = input("Choose habitat to annex >> ")
    print("")

    if choice == "1":
        name = input("Enter a name for your River >> ")
        river = River(name)
        arboretum.rivers.append(river)
    if choice == "2":
        name = input("Enter a name for your Swamp >> ")
        swamp = Swamp(name)
        arboretum.swamps.append(swamp)
    if choice == "3":
        name = input("Enter a name for your Coastline >> ")
        coastline = Coastline(name)
        arboretum.coastlines.append(coastline)
    if choice == "4":
        name = input("Enter a name for your Grassland >> ")
        grassland = Grassland(name)
        arboretum.grasslands.append(grassland)
    if choice == "5":
        name = input("Enter a name for your Mountain >> ")
        mountain = Mountain(name)
        arboretum.mountains.append(mountain)
    if choice == "6":
        name = input("Enter a name for your Forest >> ")
        forest = Forest(name)
        arboretum.forests.append(forest)
Example #13
0
def annex_habitat(arboretum):
    clear()
    print_header()
    print()
    print(f'{add_color("1.", "bright_cyan")} Coastline')
    print(f'{add_color("2.", "bright_cyan")} Forest')
    print(f'{add_color("3.", "bright_cyan")} Grassland')
    print(f'{add_color("4.", "bright_cyan")} Mountain')
    print(f'{add_color("5.", "bright_cyan")} River')
    print(f'{add_color("6.", "bright_cyan")} Swamp')

    print()
    print(f'{add_color("Select a habitat", "WARNING")}')
    choice = input("> ")
    biome = None

    if choice == "1":
        clear()
        print(
            f'{add_color("What is the name for this coastline?", "WARNING")}')
        name = input("> ")
        biome = Coastline(name)
        arboretum.coastlines.append(biome)

    if choice == "2":
        clear()
        print(f'{add_color("What is the name for this forest?", "WARNING")}')
        name = input("> ")
        biome = Forest(name)
        arboretum.forests.append(biome)

    if choice == "3":
        clear()
        print(
            f'{add_color("What is the name for this grassland?", "WARNING")}')
        name = input("> ")
        biome = Grassland(name)
        arboretum.grasslands.append(biome)

    if choice == "4":
        clear()
        print(f'{add_color("What is the name for this mountain?", "WARNING")}')
        name = input("> ")
        biome = Mountain(name)
        arboretum.mountains.append(biome)

    if choice == "5":
        clear()
        print(f'{add_color("What is the name for this river?", "WARNING")}')
        name = input("> ")
        biome = River(name)
        arboretum.rivers.append(biome)

    if choice == "6":
        clear()
        print(f'{add_color("What is the name for this swamp?", "WARNING")}')
        name = input("> ")
        biome = Swamp(name)
        arboretum.swamps.append(biome)

    #TODO: Add another if/else for if they don't choose options 1-6

    print(f'Purchasing the {biome.name} {type(biome).__name__}...')
    loading_sequence()
    print(f'Terraforming a bit...')
    loading_sequence()
    time.sleep(1.5)
    clear()
from animals import RiverDolphin, Gecko, Kikakapu
from actions.annex import annex_habitat
from actions.release_animal import release_animal
from actions.report import build_facility_report
from actions.feed import feed_animal
from actions.add_plant import add_plant

keahua = Arboretum("Keahua Arboretum", "123 Paukauila Lane")

keahua.add_biome(River("River 1"))
keahua.add_biome(River("River 2"))

keahua.add_biome(Coastline("Coastline 1"))
keahua.add_biome(Coastline("Coastline 2"))

keahua.add_biome(Swamp("Swamp 1"))
keahua.add_biome(Swamp("Swamp 2"))

keahua.add_biome(Forest("Forest 1"))
keahua.add_biome(Forest("Forest 2"))

keahua.add_biome(Grassland("Grassland 1"))
keahua.add_biome(Grassland("Grassland 2"))

keahua.add_biome(Mountain("Mountain 1"))
keahua.add_biome(Mountain("Mountain 2"))

keahua.rivers[0].add_animal(RiverDolphin())
keahua.rivers[0].add_animal(RiverDolphin())
keahua.rivers[0].add_animal(RiverDolphin())
keahua.rivers[0].add_animal(Kikakapu())