Ejemplo n.º 1
0
	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'
Ejemplo n.º 2
0
	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'
Ejemplo n.º 3
0
	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'
Ejemplo n.º 4
0
	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'