Explorer API
Explorer methods
Explorer can do one action per turn.
Note: walk
, getSpace
, look
and poke
can each take in a direction parameter:
- Direction.RIGHT
- Direction.LEFT
- Direction.DOWN
- Direction.UP
If no Direction is passed in, they will default to Direction.RIGHT.
Mutators / ActionsExplorer can do one action per turn.
walk()
- Moves the explorer forward (to the right) one Space.poke()
- Pokes the next space, causing damage to any Enemy there.recharge()
- Adds 9 to health.
Accessors:
Note that look() and lookAround() can include null cells.look()
- Returns an Array of 3 Spaces in the designated Direction.lookAround()
- Returns an 7x7 Array of Spaces with the Explorer in the center.getSpace()
- Returns the next Space on the board.getHealth()
- returns the value ofhealth
.
Space methods
isEnemy()
- returns true if the Space contains an Enemy, and false otherwise.isKnight()
- returns true if the Space contains a Knight, and false otherwise.isArcher()
- returns true if the Space contains an Archer, and false otherwise.isWall()
- returns true if the Space contains a Wall, and false otherwise.
Pawns, Archers and Knights!
Premium Content - Free Preview
Lions and Tiger and Bears, Oh My!
After defeating the impossible army of Knights, the explorer faces another challenge - An army of Pawns, Archers and Knights, and some Wall fortifications. Get around them to reach the goal.
End of Free Content Preview. Please Sign in or Sign up to buy premium content.
Comments
Bantha
May 26, 2:23 PMThis is getting server errors.
Learneroo
May 26, 3:06 PM@Bantha, sorry there was an issue with some very long games. I lowered the maximum number of moves to 130 and removed some enemies.
Egor Kulikov
May 26, 5:07 PMDo you have solution? I think I move quite optimally, but I only able to reach entrance to final cave
Bantha
May 26, 5:26 PMSame problem as egor.
Learneroo
May 26, 5:32 PMWell the solution may have been a little too specific with the 130 limit, so I removed a couple enemies. (Still not easy though.)