Advertisement
Guest User

Feint_reaction

a guest
May 9th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. import random, time
  2.  
  3. while True:
  4.  
  5. actions = ['FEINT', 'ATTACK']
  6. action = random.choice(actions)
  7. time.sleep(random.randint(1, 7))
  8.  
  9. print(action)
  10.  
  11. if action == 'ATTACK':
  12.  
  13. start = time.time()
  14. x = input()
  15. end = time.time()
  16. print(end - start, '\n')
  17.  
  18. else:
  19. time.sleep(3)
  20. print('Restarting...', '\n')
  21.  
  22. continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement