Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def Valg_info():
- print("\nYou are in a land full of dragons. In front of you"
- "\nyou see two caves. in one cave, the fragon is friendly"
- "\nand will share his treasure with you. The other dragon"
- "\nis greedy and hungry, amd will eat you on sight."
- )
- def Valg_nr1():
- print("\nYou approach the cave..."
- "\nIt is dark and spooky"
- "\nA large dragon jumps out in front of you! He opens his jaws and..."
- "\ngobbles you down in one bite!"
- )
- def Valg_nr2():
- print("\nYou approach the cave..."
- "\nIt is dark and spooky"
- "\nA large dragon jumps out in front of you! He opens his jaws and..."
- "\ngives you his treasure!"
- )
- a = 1
- while a == 1:
- Valg_info()
- valg = input("\nWhich cave will you go in to?")
- valg = int(valg)
- if valg == 1:
- print(Valg_nr1())
- while_looke = input("\nWould you like to start agin? ")
- while_looke.capitalize()
- if while_looke == "Yes":
- a = 1
- elif while_looke == "No":
- a = 2
- elif valg == 2:
- Valg_nr2()
- while_looke = input("\nWould you like to start agin?")
- while_looke.capitalize()
- if while_looke == "Yes":
- a = 1
- elif while_looke == "No":
- a = 2
Advertisement
Add Comment
Please, Sign In to add comment