Walls


Collapse Content

Sometimes you need to take two steps back in order to move forward

You need to navigate towards the goal, and get around the Walls in your path. You can use explorer.getSpace().isWall() to see if the Space to the right is a Wall. You can also pass a Direction parameter to getSpace to check another Direction, such as:
explorer.getSpace(Direction.DOWN).isWall()

Challenge

Navigate around the walls and reach the goal!

Please sign in or sign up to submit answers.

Alternatively, you can try out Learneroo before signing up.

Comments

Contact Us
Sign in or email us at [email protected]