Código del nivel 3, modo Beginner de RubyWarrior
class Player def play_turn(warrior) if warrior.feel.empty? warrior.health < 20 ? warrior.rest! : warrior.walk! else warrior.attack! end end end