Advertisement
Guest User

Door Game Code [Python 3]

a guest
Jul 23rd, 2016
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. import random
  2. import time
  3. def display_intro():
  4. print("You wake up from bed, and you realize you have no idea whose house your and your tied up. You break free and looks to see what\'s in front of you")
  5. print('You see two doors in front of you one is Red and one is Blue')
  6. print("You hear Satanic Chants from the red door")
  7. print("You hear cyying and painful moans coming from the blue door")
  8. print("You must choose between the dooors")
  9.  
  10. def chooseDoor():
  11. Door = ""
  12. while Door != "Red" and Door "Blue"python:
  13. print("What door do you choose? (Red or Blue)")
  14. Door = input()
  15. if Door != "Red" or "Blue":
  16. print("Invald Input")
  17. break
  18. return Door
  19. def checkDoor(chooseDoor):
  20. print("You open your door")
  21. time.sleep(4)
  22. print("You can hardley see anything")
  23. time.sleep(1.5)
  24. print("A man in a hooded robe, wearing a gas mask, looks at you")
  25. print()
  26. time.sleep(5)
  27. if chooseDoor = "Red":
  28. print("The man bends you over and brutally rapes you with his 18 inch penis")
  29. time.sleep(3)
  30. print("You shortly die of aids afterwards")
  31. else:
  32. print("You walk in a see a man getting his eyes riped out by a wheat sickle")
  33. time.sleep(2)
  34. print("The torturer looks at you and you pass out")
  35. time.sleep(2)
  36. print("You wake up from bed, and you realize you have no idea whose house your and your tied up. You break free and looks to see what\'s in front of you")
  37.  
  38. playAgain = "Yes"
  39. try:
  40. assert playAgain == "Yes" or "No"
  41. except AssertionError:
  42. print("Answer yes or no")
  43.  
  44. while playAgain == "Yes":
  45. displayintro()
  46. Door = chooseDoor()
  47. checkDoor(Door)
  48. print("Do you want to play again?")
  49. playAgain = input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement