https://github.com/codegoalie/rubywarrior-beginner
My Solution to the Beginner Tower of RubyWarrior
https://github.com/codegoalie/rubywarrior-beginner
Last synced: 7 months ago
JSON representation
My Solution to the Beginner Tower of RubyWarrior
- Host: GitHub
- URL: https://github.com/codegoalie/rubywarrior-beginner
- Owner: codegoalie
- Created: 2011-12-28T19:31:46.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2011-12-28T19:32:04.000Z (about 14 years ago)
- Last Synced: 2025-02-14T05:43:48.456Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 85.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
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
@ = Chris (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
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.