TIP: Watch your back.
╔═══════════╗
║>Ca @ S wC║
╚═══════════╝
> = stairs
C = Captive (1 HP)
a = Archer (7 HP)
@ = caterpillar (20 HP)
S = Thick Sludge (24 HP)
w = Wizard (3 HP)
warrior.walk()
: Move one space in the given direction (forward by default).warrior.attack()
: Attack a unit in the given direction (forward by default) dealing 5 HP of damage.warrior.rest()
: Gain 10% of max health back, but do nothing more.warrior.rescue()
: Release a unit from his chains in the given direction (forward by default).warrior.pivot()
: Rotate in the given direction (backward by default).warrior.shoot()
: Shoot your bow & arrow in the given direction (forward by default) dealing 3 HP of damage to the first unit in a range of 3 spaces.
warrior.think()
: Think about your options before choosing an action (console.log
replacement).warrior.feel()
: Return the adjacent space in the given direction (forward by default).warrior.health()
: Return an integer representing your health.warrior.look()
: Returns an array of up to 3 spaces in the given direction (forward by default).
When you're done editing Player.js
, run the warriorjs
command again.