0

can somebody help me debug

import random print("You are in a dark room in a mysterious castle.") print("in front of you are four doors. You must choose one.") playerchoice = input("choose 1, 2, 3 or 4... ") if playerchoice == "1": print("You find a room full of treasures. You're rich!") print("GAME OVER. YOU WIN!") elif playerchoice == "2": print("The door is open an angry ogre hits you with a club.") print("GAME OVER. YOU LOSE!") elif playerchoice == "3": print("You go into the room and find a sleeping dragon.") print("you can either:") print("1) Try to sneak some of the dragons gold.") print("2) try to sneak around the drangon to the exit.") dragonschoice = input("type 1 or 2....") if dragonschoice == "1": print("The dragon wakes up and eats you. You are delicious.") print("GAME OVER YOU LOSE") elif dragonschoice == "2": print("You sneak around the dragon and escape the castle.") print("GAME OVER YOU WIN!") else: print("sorry you didn't entre 1 or 2") else: print("sorry you didn't enter 1,2,3 try again") print("run the game agian") elif playerchoice == "4": print("you entre a room with a sphinx.") print("it asks you to guess what number its thinking of, between 1 and 10.") number = int(input("what number do you choose")) if number == random.randint(1,10): print("The sphinx hisses in disappointment. You guessed correctly.") print("she must let you go free") print("GAME OVER YOU WIN") else: print("The sphinx tells you that your guess is incorrect.") print("You are now her prisoner forever.") print("GAME OVER YOU LOSE") else: print("sorry, you didn't entre 1,2,3 or 4")

10th Aug 2017, 2:36 PM
code-junkie
code-junkie - avatar
1 Resposta
+ 4
could you share tour code link in SL? whats the problem exactly?
11th Aug 2017, 10:19 PM
Daniel
Daniel - avatar