class rooms():
def createroom(self, name, exits, description):
self.name = name
self.exits = exits
self.description = description
def exits(self):
print "(Exits: %s)" % self.exits
def description(self):
print "' %s '" % self.description
def name(self):
print "<%s>" % self.name
Okay I understand what people are trying to say, but I need more help on arrays (if I remember correctly that's what I'm using to store my data in).
I thought making a data structure was to make a class so I did:
Which of course is false.
What is an array, how do I use them to manipulate movement, and how do I store data in them?
Thanks in advance.
-Ghost