Skip to content

jweinzimmer/ruby-warrior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Level 9

Time to hone your skills and apply all of the abilities that you have learned.

Tip: Watch your back.

 -----------
|>Ca  @ S wC|
 -----------

  > = Stairs
  @ = Justin (20 HP)
  C = Captive (1 HP)
  a = Archer (7 HP)
  S = Thick Sludge (24 HP)
  w = Wizard (3 HP)


Warrior Abilities:

  warrior.look
    Returns an array of up to three Spaces in the given direction (forward by default).

  warrior.shoot!
    Shoot your bow & arrow in given direction (forward by default).

  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

  rubywarrior -l 3
    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

my ruby warrior solution

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published