On Mar 30, 6:48 am, neil harper <neilalt300...@gmail.com> wrote: > http://pastie.org/1735028 > hey guys play is confusing me, i get how next gets the first room, which > is passed when the instance of Game() is created, but how does it get > the next room?
It might help show calling patterns if you added print statements to the while loop: def play(self): next = self.start while True: room = getattr(self, next) print "--- Calling the method:", room, "---" next = room() print "--- That method returned:", next, "---" Raymond -- http://mail.python.org/mailman/listinfo/python-list