#NEWLINE# def world( store ) : #NEWLINE# #INDENT# def room( name ) : #NEWLINE# #INDENT# it = Thing ( store = store , name = name ) #NEWLINE# Container . createFor ( it , capacity = 1000 ) #NEWLINE# return it #NEWLINE# #UNINDENT# world = ImaginaryWorld ( store = store , origin = room ( 'The Beginning' ) ) #NEWLINE# protagonist = world . create ( 'An Example Player' ) #NEWLINE# shirt = createShirt ( store = store , name = 'shirt' , location = world . origin ) #NEWLINE# pants = createPants ( store = store , name = 'pants' , location = world . origin ) #NEWLINE# middle = room ( 'The Middle' ) #NEWLINE# wearer = IClothingWearer ( protagonist ) #NEWLINE# wearer . putOn ( IClothing ( shirt ) ) #NEWLINE# wearer . putOn ( IClothing ( pants ) ) #NEWLINE# Exit . link ( world . origin , middle , 'north' ) #NEWLINE# squeakerThing = Thing ( name = 'squeaker' , location = middle , store = store ) #NEWLINE# Squeaker . createFor ( squeakerThing ) #NEWLINE# return world