Skip to content

jgabrielygalan/rubywarrior

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Level 3

You feel slime on all sides, you're surrounded!

Tip: Call warrior.bind!(direction) to bind an enemy to keep him from attacking. Bound enemies look like capitves.

 ---
|>s |
|s@s|
| C |
 ---

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


Available Abilities:

  warrior.attack!
    Attack the unit in given direction (forward by default).

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

  warrior.walk!
    Move in given direction (forward by default).

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

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

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

  warrior.health
    Returns an integer representing your health.

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

About

My tries at a rubywarrior player

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages