Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- background="******************\n******************\n☺\n******************\n******************"
- i = 1 #to keep track where the user is in the "woods"
- n='right'
- while n=='right' or i>0:
- print(background)
- n=input("you are in the lost woods, What do you do?\nGo left or right?(type in)\n")
- if n=='right':
- i+=1
- elif n=='left':
- i-=1
- else:
- print('invalid input')
- print('\n-------------------\n☺ - - - - - -\n-------------------\n')
- print("you are out of the woods. Congratulations!!")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement