from animals import Ant, BettaFish, Copperhead, Earthworm, Finch, Gerbil, Mouse, Parakeet, Rattlesnake, Terrapin
from environments import diggingEnvironment, flyingEnvironment, swimmingEnvironment, walkingEnvironment

bob = Ant("Bob")
bubbles = BettaFish("Bubbles")
killer = Copperhead("Killer")
jim = Earthworm("Jim")
finch = Finch("Finch")
snickers = Gerbil("Snickers")
jerry = Mouse("Jerry")
flaps = Parakeet("Flaps")
death = Rattlesnake("Death")
terry = Terrapin("Terry")

hills = diggingEnvironment("Hills")
plains = walkingEnvironment("Plains")
lake = swimmingEnvironment("Lake")
aviary = flyingEnvironment("Aviary")

hills.addAnimal(death)
hills.addAnimal(jerry)
hills.addAnimal(jim)
hills.addAnimal(killer)

plains.addAnimal(bob)
plains.addAnimal(snickers)

lake.addAnimal(bubbles)
lake.addAnimal(terry)

aviary.addAnimal(flaps)
Beispiel #2
0
from animals import (Ant, BettaFish, Copperhead, EarthWorm, Finch, Gerbil,
                     Mouse, Parakeet, Rattlesnake, Terrapin)
from movements import (IWalk, ISlither, ISwim, IFly, IDig)
from habitats import (Aquarium, FlyCage, Atrium, LandCage, Terrarium,
                      WaterCage)

andy = Ant("Andy", "Fire Red")
barry = BettaFish("Barry", "Blue")
calvin = Copperhead("Calvin", 'Camo')
earl = EarthWorm("Earl", "Mud Brown")
frita = Finch("Frita", "Yellow")
grandpa = Gerbil("Granpa", "Brown")
milton = Mouse("milton", "Orange")
paulina = Parakeet("Paulina", "Purple")
rayray = Rattlesnake("Ray-Ray", "Camo")
tim = Terrapin("Tim", "green")

aqua = Aquarium()
atri = Atrium()
terra = Terrarium()
flyCage = FlyCage()
landCage = LandCage()
waterCage = WaterCage()

#Uncomment by section

#SECTION 1_____________________________________

# #Aquarium adds
# aqua.add_animal(barry)
# aqua.add_animal(tim)
Beispiel #3
0
from animals import Copperhead, Diamondback, Donkey, Fish_With_No_Eyes, Goat, Goldfish, Goose, Gorgon, Jellyfish, Llama, Mallard, Orangutan, Rat_Snake, Rattlesnake, Shark, Small_Horse

steve_url = Copperhead("Steve Url", "copperhead", "snake pellets", 1)
lucy = Diamondback("Lucy", "diamondback", "cashews", 2)
donkeh = Donkey("Donkeh", "donkey", "morning", "waffles", 3)
fsh = Fish_With_No_Eyes("Fsh", "fish with no eyes", "carrots", 4)
g****e = Goat("G****e", "goat", "afternoon", "goat snacks", 5)
silver = Goldfish("Silver", "goldfish", "Goldfish", 6)
euryale = Gorgon("Euryale", "gorgon", "gorgonzola", 7)
mav = Goose("Mav", "Canada goose", "watercress sandwiches", 16)
peanut_butter = Jellyfish("Peanut Butter", "jellyfish", "sandwiches", 8)
miss_fuzz = Llama("Miss Fuzz", "llama", "evening", "llamagranates", 9)
mallory = Mallard("Mallory", "mallard", "mallort", 10)
tang = Orangutan("Tang", "orangutan", "midnight", "Tang", 11)
snat_rake = Rat_Snake("Snat Rake", "rat snake", "Rat Snacks(TM)", 12)
maracas = Rattlesnake("Maracas", "rattlesnake", "rattlesnacks", 13)
jaws = Shark("Jaws", "shark", "bigger boats", 14)
little_sebastian = Small_Horse("Little Sebastian", "small horse", "sunrise",
                               "hay-zelnuts", 15)

varmint_village = PettingZoo("Varmint Village",
                             "cute and fuzzy critters to cuddle")
snake_hole = SnakePit("The Snake Hole",
                      "unlovable and slithery critters to avoid")
soggy_bottoms = Wetlands("Soggy Bottoms", "wet and wild critters in your area")

varmint_village.add([donkeh, g****e, miss_fuzz, tang, little_sebastian])
snake_hole.add([steve_url, lucy, euryale, snat_rake, maracas])
soggy_bottoms.add([fsh, silver, peanut_butter, mallory, jaws])

varmint_village.add_animal_type_check(mav)
Beispiel #4
0
from attractions import Wetlands

varmint_village = PettingZoo("Varmint Village")
the_slither_inn = SnakePit("The Slither Inn")
critter_cove = Wetlands("Critter Cove")

JA = Donkey("JA", "donkey", "morning", "straw", 334)
Black = Sheep("Black", "sheep", "afternoon", "hay", 123)
Billy = Goat("Billy", "goat", "midday", "pellets", 456)
Milkshake = Cow("Milkshake", "Cow", "morning", "grass", 765)
RedRum = Horse("RedRum", "horse", "midday", "apples", 678)

varmint_village.animals.extend([JA, Black, Billy, Milkshake, RedRum])

Noodles = Watersnake("Noodles", "watersnake", "fish", 198)
Zoe = Rattlesnake("Zoe", "rattlesnake", "rabbit", 444)
Snape = Cottonmouth("Snape", "cottonmouth", "salamander", 111)
Buttercup = Ratsnake("Buttercup", "ratsnake", "shrew", 222)
Sssssam = Copperhead("Sssssam", "copperhead", "mice", 555)

the_slither_inn.animals.extend([Noodles, Zoe, Snape, Buttercup, Sssssam])

Goldie = Goldfish("Goldie", "goldfish", "shelled peas", 989)
Romeo = RedFish("Romeo", "redfish", "mullet", 454)
Batman = BlueFish("Batman", "bluefish", "squid", 777)
Cleo = Catfish("Cleo", "catfish", "algae", 619)
Kiki = KoiFish("Kiki", "koi fish", "insects", 549)

critter_cove.animals.extend([Goldie, Romeo, Batman, Cleo, Kiki])

Black.feed()
Beispiel #5
0
billy = Goat(2, "Billy", "domestic goat", "midday", "goat chow")
waffles = Donkey(3, "Waffles", "domestic donkey", "afternoon", "donkey chow")
chris = Pig(4,"Chris P Bacon", "domestic pig", "morning", "pig chow")
para = Ox(5, "Para 'D' Ox", "domestic ox", "midday", "ox chow")
# goose = Goose(16, "Goose the Goose", "domestic goose", "goose chow")

dude = SeaTurtle(6, "Dude", "domestic sea turtle")
shocky = Eel(7, "Shocky", "domestic eel")
towel = Dolphin(8, "Towel", "domestic dolphin")
finn = Shark(9, "Finn", "domestic shark")
boo = Whale(10,"Boo You Whale", "domestic whale")

cheese = Ratsnake(11, "Cheese", "domestic ratsnake")
bronze = Copperhead(12, "Bronze", "domestic copperhead")
monty = Python(13, "Monty", "domestic python")
shake = Rattlesnake(14,"Shake", "domestic rattlesnake")
louis = Kingsnake(15, "King Louis", "domestic kingsnake")

varmint_village = PettingZoo("Varmint Village", "cute and fuzzy critters to cuddle")
pit_of_doom = SnakePit("Pit of Doom", "cute and scaley critters")
waterworld = Wetlands("Waterworld", "cute and wet critters")

varmint_village.add_animal(mama)
varmint_village.add_animal(billy)
varmint_village.add_animal(waffles)
varmint_village.add_animal(chris)
varmint_village.add_animal(para)
# varmint_village.add_animal(goose)

pit_of_doom.add_animal(cheese)
pit_of_doom.add_animal(bronze)
Beispiel #6
0
from animals import EarthWorms, Terrapins, Rattlesnake, Mice, Ant, Finch, BettaFish, CopperHead, Gerbil, Parakeet
from habitats import IAquarium, ICage, IDirt, IGrassy, IAmazon

earthworm = EarthWorms("WormDude")
terrapin = Terrapins("Terrible")
snake = Rattlesnake("Rattle")
mouse = Mice("MouseBro")
ant = Ant("AntBro")
finch = Finch("FinchBro")
betta = BettaFish("BettaBro")
copperhead = CopperHead("CopperNotBronze")
gerbil = Gerbil("Gerbs")
skeet = Parakeet("SKEET")

cage = ICage("The Bird Trap")
land_container = IGrassy("Land Walkers")
underworld = IDirt("Diggers")
aquarium = IAquarium("ShamooIsNumberOne")
amazon = IAmazon("Slitheren")

cage.add_animal(finch, skeet)
land_container.add_animal(ant, mouse)
underworld.add_animal(earthworm, ant, mouse, gerbil)
aquarium.add_animal(betta)
amazon.add_animal(copperhead, snake)

print(earthworm)
print(terrapin)
print(snake)
print(mouse)
print(ant)
Beispiel #7
0
def main():

    petting_zoo = PettingZoo('Petting Zoo', 'Pet Pet Pet')
    snakepit = Snakepit("Creepy Crawlers",
                        "Keep your hands outside of the tanks")
    aquarium = Wetlands("Awesome Aquatics", "Sharks, Whales, and Tunas Oh MY")

    miss_fuzz = Llama("Miss Fuzz", "Domestic Llama", "Morning", "Grass", 92549)
    george = Monkey("George", "Howler Monkey", "Afternoon", "Bananas", 39181)
    gregory = Giraffe("Gregory", "Spotted Giraffe", "Midday", "Carrots", 76876)
    donnie = Donkey("Donnie", "Catalan Donkey", "Morning", "Hay", 23648)
    helen = Horse("Helen", "Arabian Horse", "Afternoon", "Apples", 54921)

    randy = Rattlesnake("Randy", "Texas Rattlesnake", "Mice", 81625)
    mary = Mamba("Mary", "Black Mamba", "Gerbils", 71603)
    vinnie = Viper("Vinnie", "Viper", "Lizzards", 49816)
    kerry = Kingsnake("Kerry", "King Snake", "Turtle Eggs", 19254)
    carlos = Cobra("Carlos", "King Cobra", "Hamster", 12345)

    debra = Dolphin("Debra", "Striped Dolphin", "Squids", 5678)
    walker = Whale("Walker", "Killer Whale", "Penguins", 41376)
    sarah = Shark("Sarah", "Great White Shark", "Seals", 59175)
    gary = Goldfish("Gary", "Lionhead Goldfish", "Fish Food", 28922)
    tina = Tuna("Tina", "Blackfin Tuna", "Shrimp", 43819)

    petting_zoo.append_animal(miss_fuzz)
    petting_zoo.append_animal(george)
    petting_zoo.append_animal(gregory)
    petting_zoo.append_animal(donnie)
    petting_zoo.append_animal(helen)
    petting_zoo.append_animal(debra)  # Will Not Append.

    snakepit.append_animal(randy)
    snakepit.append_animal(mary)
    snakepit.append_animal(vinnie)
    snakepit.append_animal(kerry)
    snakepit.append_animal(carlos)
    snakepit.append_animal(helen)  # Will Not Append.

    aquarium.append_animal(debra)
    aquarium.append_animal(walker)
    aquarium.append_animal(sarah)
    aquarium.append_animal(gary)
    aquarium.append_animal(tina)
    aquarium.append_animal(randy)  # Will Not Append.

    for animal in petting_zoo.animals:
        print(
            f'You can find {animal.name} the {animal.species} in {petting_zoo.name}'
        )

    for animal in snakepit.animals:
        print(
            f'You can find {animal.name} the {animal.species} in {snakepit.name}'
        )

    for animal in aquarium.animals:
        print(
            f"You can find {animal.name} the {animal.species} in {aquarium.name}"
        )

    donnie.chipnum = 12334

    print(donnie.chipnum)

    print(aquarium.last_critter_added)

    print(carlos)

    donnie.feed()
    randy.feed()
    sarah.feed()
    sarah.swim()