Sleddersquid

Dragon

Jun 27th, 2019
354
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.35 KB | None | 0 0
  1. def Valg_info():
  2.     print("\nYou are in a land full of dragons. In front of you"
  3.           "\nyou see two caves. in one cave, the fragon is friendly"
  4.           "\nand will share his treasure with you. The other dragon"
  5.           "\nis greedy and hungry, amd will eat you on sight."
  6.           )
  7. def Valg_nr1():
  8.     print("\nYou approach the cave..."
  9.           "\nIt is dark and spooky"
  10.           "\nA large dragon jumps out in front of you! He opens his jaws and..."
  11.           "\ngobbles you down in one bite!"
  12.           )
  13. def Valg_nr2():
  14.     print("\nYou approach the cave..."
  15.           "\nIt is dark and spooky"
  16.           "\nA large dragon jumps out in front of you! He opens his jaws and..."
  17.           "\ngives you his treasure!"
  18.           )
  19.  
  20. a = 1
  21. while a == 1:
  22.  
  23.     Valg_info()
  24.     valg = input("\nWhich cave will you go in to?")
  25.     valg = int(valg)
  26.  
  27.     if valg == 1:
  28.         print(Valg_nr1())
  29.         while_looke = input("\nWould you like to start agin? ")
  30.         while_looke.capitalize()
  31.         if while_looke == "Yes":
  32.             a = 1
  33.         elif while_looke == "No":
  34.             a = 2
  35.  
  36.     elif valg == 2:
  37.         Valg_nr2()
  38.         while_looke = input("\nWould you like to start agin?")
  39.         while_looke.capitalize()
  40.         if while_looke == "Yes":
  41.             a = 1
  42.         elif while_looke == "No":
  43.             a = 2
Advertisement
Add Comment
Please, Sign In to add comment