Skip to content

dvolker/rubywarrior-solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

This solution yields the following score in epic mode:

CONGRATULATIONS! You have climbed to the top of the tower and rescued the fair maiden Ruby.
Level Score: 105
Time Bonus: 17
Clear Bonus: 24
Total Score: 623 + 146 = 769
Your average grade for this tower is: B

  Level 1: S
  Level 2: A
  Level 3: C
  Level 4: D
  Level 5: C
  Level 6: B
  Level 7: C

====

Level 9

Never before have you seen a room so full of sludge. Start the fireworks!

Tip: Be careful not to let the ticking captive get caught in the flames. Use warrior.distance_of to avoid the captives.

 ----
|ssC>|
|@sss|
|ssC |
 ----

  > = Stairs
  @ = Uzo (20 HP)
  C = Captive (1 HP)
  s = Sludge (12 HP)


Warrior Abilities:

  warrior.distance_of
    Pass a Space as an argument, and it will return an integer representing the distance to that space.

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

  warrior.detonate!
    Detonate a bomb in a given direction (forward by default) which damages that space and surrounding 4 spaces (including yourself).

  warrior.listen
    Returns an array of all spaces which have units in them.

  warrior.direction_of
    Pass a Space as an argument, and the direction (:left, :right, :forward, :backward) to that space will be returned.

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

  warrior.bind!
    Binds a unit in given direction to keep him from moving (forward by default).

  warrior.attack!
    Attacks a unit 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.walk!
    Move in the given direction (forward by default).

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

  warrior.direction_of_stairs
    Returns the direction (:left, :right, :forward, :backward) the stairs are from your location.


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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors