Exemplo n.º 1
0
from Room import Room
from Character import Enemy
from Character import Character

print("Play the zombie game")
print()
#create four rooms
kitchen = Room("Kitchen")
dining_hall= Room("Dining Hall")
ballroom = Room("Ballroom")
study = Room("Study")

#set the description and the direction link to other room
kitchen.set_description("A dank and dirty room buzzing with flies")
kitchen.link_room(dining_hall, "south")
dining_hall.set_description("A large room with a large fire place")
dining_hall.link_room(ballroom, "west")
dining_hall.link_room(kitchen, "north")
ballroom.set_description("A vast room with a large oak polished floor")
ballroom.link_room(dining_hall, "east")
study.set_description("A beautiful room with books wall to wall")
study.link_room(ballroom, "south")
study.link_room(kitchen, "east")
kitchen.link_room(study, "west")
ballroom.link_room(study, "north")

#create an enemy
dave = Enemy("Dave" , "A smelly zombie")
dave.set_conversation("Brrlgrh...rghl...brains...")
dave.set_weakness("Cheese")
sally = Enemy("Sally" , "Merciless & savage")