Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

My first try at ryanb's Ruby Warrior

tree: 0a19649ce5

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 .gitignore
Octocat-spinner-32 .profile
Octocat-spinner-32 README
Octocat-spinner-32 player.rb
README
Level 6

The wall behind you feels a bit further away in this room. And you hear more cries for help.

Tip: You can walk backward by passing ':backward' as an argument to walk!. Same goes for feel, rescue! and attack!.

 --------
|C @ S aa|
 --------

  > = Stairs
  @ = gabe (20 HP)
  C = Captive (1 HP)
  S = Thick Sludge (24 HP)
  a = Archer (7 HP)


Available Abilities:

  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!
    Attack the unit in given direction (forward by default).

  warrior.walk!
    Move in given direction (forward by default).
Something went wrong with that request. Please try again.