Ejemplo n.º 1
0
def main():

    castle_pets = PettingZoo("Castle Pets", "fuzzy little critters to pet")
    # shrek_swamp = wetlands("Shrek's Swamp", "this is my swamp")
    # sneaky_snakies = snakePit("Sneaky Snakes", "bring a recorder and they'll dance for you")

    # donkey = Donkey("Donkey", "donkey", "morning", "grass", 123)
    # slithers = Snake("Slithers", "python", "mice", 456)
    # nemo = Fish("Nemo", "clown fish", "pellets", 789)
    carol = Tiger("Carol", "Bengal", "husband\'s", 741)

    # castle_pets.animals.append(carol)
    # sneaky_snakies.animals.append(slithers)
    # shrek_swamp.animals.append(nemo)

    castle_pets.add_animal_pythonic(carol)

    carol.run()
    carol.swim()
Ejemplo n.º 2
0
def main():

    varmint_village = PettingZoo("Varmint Village",
                                 "cute and fuzzy critters to cuddle")
    slither_inn = SnakePit('Slither Inn', "stupendous snakes of all sizes")
    bubbling_brook = Wetlands('Bubbling Brook', "feathery and wet critters")

    dolly = Llama("Dolly", "miniature llama", "morning", "hay", 1033)
    snappy = RattleSnake("Snappy", "American RattleSnake", "frogs", 1044)
    donald = Duck("Donald", "Animated Duck", "Duck Food", 123)

    varmint_village.add_animal_pythonic(dolly)
    varmint_village.add_animal_pythonic(snappy)

    slither_inn.add_animal_pythonic(dolly)
    slither_inn.add_animal_pythonic(snappy)

    bubbling_brook.add_animal_pythonic(donald)
    bubbling_brook.add_animal_pythonic(snappy)
Ejemplo n.º 3
0
from animals import Llama, Goat, Alpaca, Pony, Pig, Tadpole, Goldfish, Mallard, Goose, Frog, Snake, Turtle, Lizard, Viper, Boa
from attractions import PettingZoo, Wetlands, SnakePit





varmint_village = PettingZoo("The Varmint Village")

# remember, some animals may require more arguments than others; e.g. shift
dolly = Llama("Dolly", "miniature llama","morning", "hay")
snappy = Goldfish("Snappy", "American Alligator", "afternoon", "fish")

varmint_village.add_animal_pythonic(dolly)
varmint_village.add_animal_type_check(dolly)
varmint_village.add_animal_pythonic(snappy)





# fluffy_village = PettingZoo("Fluffy Village")
# varmint_village = PettingZoo("Varmint Village")
# wet_village = Wetlands("Wet Village")
# print(wet_village.description)


############

miss_fuzz = Llama("Miss Fuzz", "domestic llama", "morning", "Llama Chow" )
mr_fuzz = Goat("Mister Fuzz", "mountain goat", "morning", "Goat Chow")
Ejemplo n.º 4
0
water_town.add_animal(jerry)

# print(miss_fuzz)
# print(tony)
# print(ned)
# print(henry)
# print(george)
# print(flipper)
# print(buddha)
# print(ed)
# print(gus)
# print(jerry)
# print(carl)
# print(ren)
# print(sally)
# print(charlie)
# print(al)
# print(slither_inn)
# print(varmint_village)
# print(water_town)

# print(slither_inn.last_critter_added)
# print(varmint_village.last_critter_added)
# print(water_town.last_critter_added)

varmint_village.add_animal_pythonic(flipper)
varmint_village.add_animal_pythonic(ned)
slither_inn.add_animal_pythonic(tony)
slither_inn.add_animal_pythonic(carl)
water_town.add_animal_pythonic(ren)
water_town.add_animal_pythonic(flipper)