mazewalker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
mazewalker [2019/08/29 23:59] – frchris | mazewalker [2022/09/05 12:22] – [Running your MazeWaker with Student Mazes] frchris | ||
---|---|---|---|
Line 56: | Line 56: | ||
{{ :: | {{ :: | ||
+ | |||
+ | ===== Running your MazeWaker with Student Mazes ===== | ||
+ | |||
+ | Download the text file you find at [[https:// | ||
+ | <code MazeWalkerRunner.java> | ||
+ | import java.awt.Color; | ||
+ | import kareltherobot.*; | ||
+ | public class MazeWalkerRunner implements Directions | ||
+ | { | ||
+ | public static void task() | ||
+ | { | ||
+ | // change the location to where the first beeper is: | ||
+ | MazeWalker mayzie = new MazeWalker(1, | ||
+ | mayzie.pickBeeper(); | ||
+ | mayzie.escapeMaze(); | ||
+ | mayzie.turnOff(); | ||
+ | } | ||
+ | |||
+ | public static void main(String[] args) | ||
+ | { | ||
+ | World.reset(); | ||
+ | World.setDelay(1); | ||
+ | World.setBeeperColor(Color.RED); | ||
+ | // change the name to match the maze world file | ||
+ | World.readWorld(" | ||
+ | World.setVisible(); | ||
+ | task(); | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== MaveWalker Troubleshooting ===== | ||
Hints: | Hints: | ||
* Case One check: is the front clear? | * Case One check: is the front clear? | ||
Line 62: | Line 94: | ||
* In case 3 and 4 you can move to the right. | * In case 3 and 4 you can move to the right. | ||
* Case 3 versus case 4: is there a wall on the right? | * Case 3 versus case 4: is there a wall on the right? | ||
+ | ====== Links ====== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ |
mazewalker.txt · Last modified: 2022/09/05 12:25 by frchris