Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- def chooseCave(cavenum):
- print("You choose cave: "+cavenum+" to enter")
- time.sleep(3)
- print("Lets see your fate")
- time.sleep(3)
- fate=["You find treasure","The Dragon eats you"]
- print(random.choice(fate))
- print("Play again?")
- play=input()
- if play=='yes' or play=='y':
- playgame()
- else:
- exit()
- def playgame():
- choice=input("Choose a number between 1 and 2:")
- chooseCave(choice)
- playgame()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement