Theeaxe

The Maze Adventure

Feb 6th, 2014
191
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.37 KB | None | 0 0
  1. # Start of the program
  2. print "Hello there! You are about to play the Maze Adventure!"
  3.  
  4. # Ask if they actually want to play the game
  5. # Make a raw input
  6. start = raw_input("Press Y if you would like to play the Maze Adventure, and N if you wouldn't like to.")
  7.  
  8. # Find out what they do say
  9. if start.lower() == "y":
  10.     print "Awesome!"
  11.    
  12.     #get their name
  13.     name = raw_input("What is your name?")
  14.     print name
  15.    
  16.     #Figure out which way they want to go
  17.     door = raw_input("Hello %s, You are about to enter the Maze Adventure! Are you going to go through door 1, door 2, or door 3 (write 1 for first, 2 for second and 3 for third)" % (name))
  18.    
  19.     if (door == "1"):  # Picked door 1
  20.         print "Since you chose Door 1, you now get to go either right or left"
  21.         d1 = raw_input("R for right & L for left")
  22.        
  23.         if d1.lower() == "r": # The person went to the Right
  24.             print "You can either go down the elevator or go around it and run straight..."
  25.             d1es = raw_input("Please type E for Elevator and S to go straight")
  26.            
  27.             if d1es.lower() == "e": #Find out if person went on the elevator
  28.                 print "You can now either go to the basement or the top floor..."
  29.                 d1ebtf = raw_input("Type B for Basement or T for Top Floor") #d1ebtf stands for door 1 elevator basement top floor
  30.                
  31.                 if d1ebtf.lower() == "b": #See if they chose Basement
  32.                     print "The shaft broke as you went down to the Basement, and you fell unconscious, but a stranger was able to heal you."
  33.                     print "You either say Thanks for helping me or Who are you..."
  34.                     mstrangerconversation1 = raw_input("Type 1 for to say Thanks or 2 to ask who this stranger is") # mstrangerconversation1 means mysterious stranger conversation number 1
  35.                        
  36.                     if (mstrangerconversation1 == "1"): # This means the person said to say thank you
  37.                         print "I am saying this to fill it in since it gives me an error"
  38.                        
  39.         elif d1.lower() == "l": # The person went to the Left
  40.             print "You see a ladder going up and a slide going down. Which way do you go?"
  41.             left_lad_sli = raw_input("Please type L for Ladder and S for Slide")
  42.            
  43.             if left_lad_sli.lower() == "l":
  44.                 print "You slip on one of the bars, but a trampoline was able to catch your fall..."
  45.            
  46.            if left_lad_sli.lower() == "s":
  47.                 print "test"
  48.        
  49.         else: # if the person didn't type in L or R
  50.          print "I didn't understand what you said. Please try again next time, Bye!"
  51.  
  52.     elif door == "2":  # Picked door 2
  53.         print "Since you chose Door 2, you see a diverging hallway..."
  54.         d2 = raw_input("Which will you pick [L for left, R for right?")
  55.         print d2
  56.        
  57.     elif door == "3": #Picked door 3
  58.         print "Since you picked Door 2, you either go up or down..."
  59.         d3 = raw_input("Type U for up and D for down")
  60.        
  61.     else:
  62.         print "I didn't understand what you said, please try again next time! Bye for now!"
  63.    
  64. elif start.lower() == "n":
  65.     print "Your missing out... See you next time, BYE!"
  66.  
  67. else:
  68.     print "I didn't quite understand what you said... Please try again. Bye!"
Advertisement
Add Comment
Please, Sign In to add comment