示例#1
0
    "An empty strand of blacktop with nothing to see for miles. "
    )

carLane = Area(
    "As you walk along the deserted road, you see a mid-nineties Toyota "
    "Corolla stranded in the emergency lane.  It's starting to get dark out "
    "and you think you hear something rustling in the woods.  You can keep "
    "going forward, but it may be safer to try and get in the car. ",
    "Looking furthur down there road, there appears to be a deserted vehicle. "
    )

outsideOfCar = Area(
    "Looking through the driver's side window, you see an interior that looks "
    "spotless. ",
    "A mid-nineties Corolla, in prestine condition except for the spots of "
    "rust starting to form around the edges. "
    )

# start: Area object setup
start.addItem(keychain)
start.addItem(wallet)
start.addLink(frozenset(["forwards","forward","onward"]), forward)

# carLane: Area object setup
carLane.addLink(frozenset(["car", "vehicle", "toyota", "corolla",
                           "toyota corolla"]),
                outsideOfCar)
carLane.addLink(frozenset(["back", "backwards", "away"]), start)

actor = Player(start)