Advertisement
TorroesPrime

Untitled

Dec 1st, 2021
1,063
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.61 KB | None | 0 0
  1.     def assemble_adventure(self):
  2.         constructors = {'Rooms' : self.rooms,
  3.                         'Exits' : self.exits}
  4.         for section_type, section_contents in self.sections.findall(self.adventure):
  5.             section_contents = self.section_contents.split(section_contents)
  6.             #constructor = constructors[section_type]
  7.             #constructor(section_contents)
  8.             print(type(section_contents))
  9.             for item in section_contents:
  10.                 print("===================================")
  11.                 print(item)
  12.                 print("+++++++++++++++++++++++++++++++++++")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement