Guest User

Untitled

a guest
May 20th, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. class Player
  2. {
  3. playTurn(warrior)
  4. {
  5. // Cool code goes here.
  6.  
  7. if (warrior.feel().isEmpty() == false)
  8. {
  9. warrior.attack();
  10. }
  11. else if (warrior.feel().isEmpty() == true)
  12. {
  13. if (warrior.health()<8)
  14. {
  15. warrior.rest();
  16. }
  17. else
  18. {
  19. warrior.walk();
  20. }
  21. }
  22. }
  23. }
Add Comment
Please, Sign In to add comment