Advertisement
Embry0

Untitled

Oct 14th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.70 KB | None | 0 0
  1.  
  2. answer = input('Wanna play/ (yes/no)')
  3.  
  4. if answer.lower().strip() == 'yes':
  5.     answer = input('You reach a crossroads. What now, left or right?'). lower().strip()
  6.     if answer == 'left':
  7.         answer = input('You met a monster. Would you like to run or attack?')
  8.         if answer == 'attack':
  9.             print('That is the MONSTER, idiot! You lost!')
  10.         else:
  11.             print('Good choice. Your safety now. Wait for another game.')
  12.     elif answer == 'right':
  13.         print('You walk aimlessly to the right and fall on a patch of ice. You injure your leg and you not continue. '
  14.               'The game OVER!')
  15.     else:
  16.         print('Invalid choice!')
  17.  
  18. else:
  19.     print('END')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement