Advertisement
Guest User

Adventure maze game made by me on python

a guest
Oct 31st, 2023
684
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.36 KB | None | 0 0
  1. print("welcome to:")
  2. print("                                                              ____                                                                   ")
  3. print("    --       |----  \       / |===== |\   |======== |    | |    |  |=======          |\       /|      --      ======   |=======   ")
  4. print("   /  \     |    -  \     /  |      | \  |   =     |    | |    |  |                 | \     / |     /  \         /   |          ")
  5. print("  /====\    |    -   \   /   |===== |  \ |   =     |    | |=====  |=======          |  \   /  |    /====\       /    |=======   ")
  6. print(" /      \   |   -     \ /    |      |   \ |   =     |    | |     \ |                 |   \ /   |   /      \     /     |          ")
  7. print("/        \  |---       \/     |===== |    \|   =     \____/ |      \|=======          |    \/    |  /        \   /===== |=======   ")
  8. print("you entere a maze. And you see two paths.")
  9. print("do you want to turn left or right?")
  10.  
  11. #promp user for choice
  12. beginnerChoice = input("> ")
  13.  
  14. if(beginnerChoice == "left"):
  15.     print("you decide to to turn left.")
  16.     print("There you see two orcs")
  17.     print("Are going to ask them for direction?")
  18.  
  19.     orcChoice = input("> ")
  20.  
  21.     if(orcChoice == "yes"):
  22.         print("You decide to ask the orcs for directions.")
  23.         print("The orcs replies that they wil navigate you if you can answer their riddle.")
  24.         print("The riddle is:")
  25.         print(" I am an odd number. Take away a letter and I become even. What number am I?")
  26.  
  27.         orcRiddle = input("> ")
  28.         if(orcRiddle == "seven"):
  29.             print("They say that you are right! So they let you continue.")
  30.             print("When you find the exit and go trough... you wake up and realise that this is just a dream!")
  31.  
  32.         else:
  33.             print("The orcs grabs you and eats you for lunch.")
  34.             print("You died")      
  35.            
  36.     elif(orcChoice == "no"):
  37.         print("you decide to go away")
  38.         print("Suddenly the orcs turn around and grabs you nowhere to be seen!")
  39.         print(" You got kidnaped")
  40.        
  41.     else:
  42.         print("Type yes or no")
  43.        
  44. elif(beginnerChoice == "right"):
  45.     print("You decided to turn right.")
  46.     print("When you turn right you see a chest.")
  47.     print("Are you willing to open it?")
  48.  
  49.     chestChoice = input("> ")
  50.  
  51.     if(chestChoice == "yes"):
  52.         print("You decide to open the chest.")
  53.         print("When you open the chest you find teeths and a big tongue wagging around you")
  54.         print("You got eaten by chest.")
  55.        
  56.     elif(chestChoice == "no"):
  57.         print("You think that this is a trap and decide to turn back.")
  58.         print("While you walk back from where you began you you run into a dog,but suddenly the dog run into a dark shadow.")
  59.         print("Will you follow the dog?")
  60.  
  61.         dogChoice = input("> ")
  62.  
  63.         if(dogChoice == "yes"):
  64.             print("You decide to follow the dog.")
  65.             print("When you run into the shadow you wake up. It was all a dream!")
  66.            
  67.         elif(dogChoice == "no"):
  68.             print("You decide not to follow the dog and instead to start again from the beginig.")
  69.            
  70.         else:
  71.             print("Choose between yes or no.")
  72.        
  73.     else:
  74.         print("Type yes or no")
  75. else:
  76.     print("chose between left or right")
  77.    
  78.  
  79.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement