| Level name: | Level 5 |
|---|---|
| Instructions: | This maze introduces the 'Check Ahead' command/block this allows the runner to know if the path ahead is clear or not. Use this command/block along with the logical 'if' command/block to help you navigate the maze using as few command/blocks as possible. |
| Updated: | 27/02/2023 14:35 |
| Permalink: | http://maze.asdan-computing.org.uk/1177a52e-903b-4118-87fb-229b5d3a81ae |
| JS Command | Description |
|---|---|
| window.mazerunner_move() | Moves the runner one cell forward. |
| window.mazerunner_complete() | Returns TRUE if the runner is in the goal cell, FALSE otherwise. |
| window.mazerunner_turn_right() | Rotates the runner clockwise. |
| window.mazerunner_turn_left() | Rotates the runner anti-clockwise. |
| window.mazerunner_path_ahead() | Returns TRUE if the cell immediately in front of the runner is valid, false otherwise. |
As you are not signed in, you are working on a public project that can be changed by anyone who has the permalink.
Go to the Register page to create an account and protect your project.