def enter(self): global doors print "You enter a green room; every surface is criss-crossed by a " print "complex pattern of grooves and cuts that reflect the light at " print "different angles, and like the inside of a giant multi-faceted " print "emerald gem the green hue changes as you look and when you move. " print "Behind you is a",doors['behind'], "door, to the left is a",doors['left'], "door, " print "straight ahead is a",doors['ahead'], "door, to the right is a",doors['right'], "door, " print "in the middle of the ceiling is a",doors['ceiling'], "door, and in the middle of " print "the floor is a",doors['floor'], "door. There seem to be runes chiselled in one " print "small section of wall. What will you do? Open a door or examine the " print "runes?" global greencount greencount += 1 action = raw_input("> ") if "red" in action or "Red" in action: doors = {'behind': 'Green', 'left': 'White', 'ahead': 'Yellow', 'right': 'Black', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'red' elif "blue" in action or "Blue" in action: doors = {'behind': 'Green', 'left': 'Black', 'ahead': 'Yellow', 'right': 'White', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'blue' elif "orange" in action or "Orange" in action: doors = {'behind': 'Green', 'left': 'Red', 'ahead': 'Yellow', 'right': 'Blue', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingwall() return 'orange' elif "purple" in action or "Purple" in action: doors = {'behind': 'Green', 'left': 'Red', 'ahead': 'Yellow', 'right': 'Blue', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorwall() return 'purple' elif "black" in action or "Black" in action: doors = {'behind': 'Green', 'left': 'Red', 'ahead': 'Yellow', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'black' elif "white" in action or "White" in action: doors = {'behind': 'Green', 'left': 'Blue', 'ahead': 'Yellow', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'white' elif "runes" in action or "Runes" in action: portalactions.runes() greencount -= 1 raw_input("Back to room?" ) return 'green' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" greencount -= 1 return 'green'
def enter(self): global doors print "You enter a blue room; blue like a bright cloudless sky, vibrant and " print "inviting, and with each surface seeming to possess the same airy " print "impermanence. Behind you is a",doors['behind'], "door, to the left is a",doors['left'] print "door, straight ahead is a",doors['ahead'], "door, to the right is a",doors['right'] print "door, in the middle of the ceiling is a",doors['ceiling'], "door, and in the " print "middle of the floor is a",doors['floor'], "door. There seems to be a tiny Sun " print "or independent light source of sorts near one edge. What will you do? " print "Open a door or examine the little light source?" global bluecount bluecount += 1 action = raw_input("> ") if "yellow" in action or "Yellow" in action: doors = {'behind': 'Blue', 'left': 'Black', 'ahead': 'Red', 'right': 'White', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'yellow' elif "green" in action or "Green" in action: doors = {'behind': 'Blue', 'left': 'White', 'ahead': 'Red', 'right': 'Black', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'green' elif "orange" in action or "Orange" in action: doors = {'behind': 'Blue', 'left': 'Green', 'ahead': 'Red', 'right': 'Yellow', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingwall() return 'orange' elif "purple" in action or "Purple" in action: doors = {'behind': 'Blue', 'left': 'Green', 'ahead': 'Red', 'right': 'Yellow', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorwall() return 'purple' elif "black" in action or "Black" in action: doors = {'behind': 'Blue', 'left': 'Green', 'ahead': 'Red', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'black' elif "white" in action or "White" in action: doors = {'behind': 'Blue', 'left': 'Yellow', 'ahead': 'Red', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'white' elif "sun" in action or "Sun" in action or "light" in action or "Light" in action: portalactions.sun() bluecount -= 1 raw_input("Back to room?" ) return 'blue' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" bluecount -= 1 return 'blue'
def enter(self): global doors print "You enter an intense yellow room, the walls, ceiling, and floor of " print "which appear to have a dimpled waxy texture that would be smooth to " print "the touch. Behind you is a",doors['behind'], "door, to the left is a",doors['left'] print "door, straight ahead is a",doors['ahead'], "door, to the right is a",doors['right'] print "door, in the middle of the ceiling is a",doors['ceiling'], "door, and in the " print "middle of the floor is a",doors['floor'], "door. You notice a blood-smeared " print "stain on one wall. What will you do? Open a door or examine the blood " print "stain?" global yellowcount yellowcount += 1 action = raw_input("> ") if "red" in action or "Red" in action: doors = {'behind': 'Yellow', 'left': 'Black', 'ahead': 'Green', 'right': 'White', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'red' elif "blue" in action or "Blue" in action: doors = {'behind': 'Yellow', 'left': 'White', 'ahead': 'Green', 'right': 'Black', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'blue' elif "orange" in action or "Orange" in action: doors = {'behind': 'Yellow', 'left': 'Blue', 'ahead': 'Green', 'right': 'Red', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingwall() return 'orange' elif "purple" in action or "Purple" in action: doors = {'behind': 'Yellow', 'left': 'Blue', 'ahead': 'Green', 'right': 'Red', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorwall() return 'purple' elif "black" in action or "Black" in action: doors = {'behind': 'Yellow', 'left': 'Blue', 'ahead': 'Green', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'black' elif "white" in action or "White" in action: doors = {'behind': 'Yellow', 'left': 'Red', 'ahead': 'Green', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'white' elif "stain" in action or "Stain" in action or "blood" in action or "Blood" in action: portalactions.stain() yellowcount -= 1 raw_input("Back to room?" ) return 'yellow' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" yellowcount -= 1 return 'yellow'
def enter(self): global doors print "You enter a black room; every surface, walls, ceiling, floor, seems " print "to glisten wetly like thick black oil and the illumination is dim. " print "Despite feeling slippery to walk on, no stain marks your shoes. Behind " print "you is a",doors['behind'], "door, to the left is a",doors['left'], "door, straight ahead " print "is a",doors['ahead'], "door, to the right is a",doors['right'], "door, in the middle of " print "the ceiling is a",doors['ceiling'], "door, and in the middle of the floor is a " print doors['floor'],"door. In one corner there is an inky black sculpture. What " print "will you do? Open a door or examine the sculpture?" global blackcount blackcount += 1 action = raw_input("> ") if "red" in action or "Red" in action: doors = {'behind': 'Black', 'left': 'Green', 'ahead': 'White', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'red' elif "blue" in action or "Blue" in action: doors = {'behind': 'Black', 'left': 'Yellow', 'ahead': 'White', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'blue' elif "green" in action or "Green" in action: doors = {'behind': 'Black', 'left': 'Blue', 'ahead': 'White', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'green' elif "yellow" in action or "Yellow" in action: doors = {'behind': 'Black', 'left': 'Red', 'ahead': 'White', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'yellow' elif "purple" in action or "Purple" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorceiling() return 'purple' elif "orange" in action or "Orange" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingfloor() return 'orange' elif "sculpture" in action or "Sculpture" in action: portalactions.sculpture() blackcount -= 1 raw_input("Back to room?" ) return 'black' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" blackcount -= 1 return 'black'
def enter(self): global doors print "You enter a red room; every surface is a bright intense red that " print "suddenly fades slightly before returning to its original hue, " print "cycling, pulsing . . . beating . . . in time to your heart. Behind " print "you is a",doors['behind'], "door, to the left is a",doors['left'], "door, straight " print "ahead is a",doors['ahead'], "door, to the right is a",doors['right'], "door, in the " print "middle of the ceiling is a",doors['ceiling'], "door, and in the middle of the " print "floor is a",doors['floor'], "door. Your attention is captured by the dead " print "body the corner. What will you do? Open a door or examine the body?" global redcount redcount += 1 action = raw_input("> ") if "white" in action or "White" in action: doors = {'behind': 'Red', 'left': 'Green', 'ahead': 'Blue', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'white' elif "black" in action or "Black" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'black' elif "green" in action or "Green" in action: doors = {'behind': 'Red', 'left': 'Black', 'ahead': 'Blue', 'right': 'White', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'green' elif "yellow" in action or "Yellow" in action: doors = {'behind': 'Red', 'left': 'White', 'ahead': 'Blue', 'right': 'Black', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'yellow' elif "purple" in action or "Purple" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorwall() return 'purple' elif "orange" in action or "Orange" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingwall() return 'orange' elif "corpse" in action or "Corpse" in action or "body" in action or "Body" in action: portalactions.corpse() redcount -= 1 raw_input("Back to room?" ) return 'red' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" redcount -= 1 return 'red'
def enter(self): global doors print "You are in a completely white, cube-shaped room. The whiteness " print "gleams from every spotless surface and you cast no shadow. The " print doors['behind'],"door is behind you; on the left wall is a",doors['left'], "door, the wall " print "ahead has a",doors['ahead'], "door, on the right wall is a",doors['right'], "door. The ceiling " print "has a",doors['ceiling'], "door, and the floor has a",doors['floor'], "door. To the side of the " print "Blue door is a small terminal with a screen and keyboard. Choose a " print "door or examine the terminal?" global whitecount whitecount += 1 action = raw_input("> ") if "red" in action or "Red" in action: doors = {'behind': 'White', 'left': 'Yellow', 'ahead': 'Black', 'right': 'Green', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'red' elif "blue" in action or "Blue" in action: doors = {'behind': 'White', 'left': 'Green', 'ahead': 'Black', 'right': 'Yellow', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'blue' elif "green" in action or "Green" in action: doors = {'behind': 'White', 'left': 'Red', 'ahead': 'Black', 'right': 'Blue', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'green' elif "yellow" in action or "Yellow" in action: doors = {'behind': 'White', 'left': 'Blue', 'ahead': 'Black', 'right': 'Red', 'ceiling': 'Orange', 'floor': 'Purple'} portalactions.door() return 'yellow' elif "purple" in action or "Purple" in action: doors = {'behind': 'Blue', 'left': 'Green', 'ahead': 'Red', 'right': 'Yellow', 'ceiling': 'Black', 'floor': 'White'} portalactions.floorfloor() return 'purple' elif "orange" in action or "Orange" in action: doors = {'behind': 'Red', 'left': 'Yellow', 'ahead': 'Blue', 'right': 'Green', 'ceiling': 'White', 'floor': 'Black'} portalactions.ceilingceiling() return 'orange' elif "terminal" in action or "Terminal" in action: return 'terminal' else: print "\n" print "Aaaaaaand you still have a choice to make." print "\n" whitecount -= 1 return 'white'