Whenever you sense an area, often one or multiple spaces (in an array) will be returned. For example, the "feel" sense in the "Baby Steps" tower returns one space:
const space = warrior.feel();
You can call methods on a space to gather information about what's there.
Here are the various methods that are available to you:
Returns the relative location of this space as the number of spaces forward and to the right of your position.
(number): The relative location of this space as the offset
Determines if nothing (except maybe stairs) is at this space.
(boolean): Whether this space is empty or not.
Determines if the stairs are at this space.
(boolean): Whether the stairs are at this space or not.
Determines if this is the edge of the level.
(boolean): Whether this space is a wall or not.
Determines if there's a unit at this space.
(boolean): Whether a unit is at this space or not.
Returns the unit located at this space (if any).
(Unit): The unit at this location or
undefined if there's none.