Skip to content
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Level 7

You feel a wall right in front of you and an opening behind you.

Tip: You are not as effective at attacking backward. Use warrior.feel.wall? and warrior.pivot! to turn around.

 ------
|>a S @|
 ------

  > = Stairs
  @ = Jonamir (20 HP)
  a = Archer (7 HP)
  S = Thick Sludge (24 HP)


Warrior Abilities:

  warrior.pivot!
    Rotate :left, :right or :backward (default)

  warrior.rescue!
    Rescue a captive from his chains (earning 20 points) in given direction (forward by default).

  warrior.health
    Returns an integer representing your health.

  warrior.rest!
    Gain 10% of max health back, but do nothing more.

  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.

About

Ruby Warrior

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors