tutorials/ruby/rubywarrior/tim-beginner
Timothy Warren 8f720c10b2 Move to second floor of ruby warrior 2016-08-24 19:45:22 -04:00
..
.idea Add rubywarrior tutorial 2016-08-24 19:31:35 -04:00
.profile Move to second floor of ruby warrior 2016-08-24 19:45:22 -04:00
README Move to second floor of ruby warrior 2016-08-24 19:45:22 -04:00
RubyWarrior.iml Add rubywarrior tutorial 2016-08-24 19:31:35 -04:00
player.rb Add rubywarrior tutorial 2016-08-24 19:31:35 -04:00

README

Level 2

It is too dark to see anything, but you smell sludge nearby.

Tip: Use warrior.feel.empty? to see if there is anything in front of you, and warrior.attack! to fight it. Remember, you can only do one action (ending in !) per turn.

 --------
|@   s  >|
 --------

  > = Stairs
  @ = Tim (20 HP)
  s = Sludge (12 HP)


Warrior Abilities:

  warrior.feel
    Returns a Space for the given direction (forward by default).

  warrior.attack!
    Attacks a unit in given direction (forward by default).

  warrior.walk!
    Move in the given direction (forward by default).


When you're done editing player.rb, run the rubywarrior command again.