Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. class Player
  2. def play_turn(warrior)
  3. if warrior.feel.empty?
  4. if warrior.health < 20
  5. warrior.rest!
  6. else
  7. warrior.walk!
  8. end
  9. else
  10. warrior.attack!
  11. end
  12. end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement