foyer = Room( "Foyer", """Dim light filters in from the south. Dusty passages run north and east.""" ) overlook = Room( "Grand Overlook", """A steep cliff appears before you, falling into the darkness. Ahead to the north, a light flickers in the distance, but there is no way across the chasm.""" ) narrow = Room( "Narrow Passage", """The narrow passage bends here from west to north. The smell of gold permeates the air.""" ) treasure = Room( "Treasure Chamber", """You've found the long-lost treasure chamber! Sadly, it has already been completely emptied by earlier adventurers. The only exit is to the south.""" ) # ========= Link Rooms ========= outside.n_to = foyer foyer.s_to = outside foyer.n_to = overlook foyer.e_to = narrow overlook.s_to = foyer narrow.w_to = foyer narrow.n_to = treasure treasure.s_to = narrow print(foyer)