mazewalker
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
mazewalker [2019/08/29 23:44] – frchris | mazewalker [2021/09/01 16:19] – frchris | ||
---|---|---|---|
Line 3: | Line 3: | ||
====== Before ====== | ====== Before ====== | ||
- | {{:: | + | {{:: |
====== After ====== | ====== After ====== | ||
- | {{:: | + | {{:: |
- | Here are four of the different position changes | + | These four different position changes is the cornerstone for the algorithm |
Line 15: | Line 15: | ||
{ | { | ||
- | public MazeWalker(int street, int avenue, Direction direction, int beepers) { | + | public MazeWalker(int street, int avenue, |
+ | Direction direction, int beepers) | ||
+ | { | ||
super(street, | super(street, | ||
Line 30: | Line 32: | ||
/** | /** | ||
* This will move the Robot according to the diagram | * This will move the Robot according to the diagram | ||
- | | + | |
*/ | */ | ||
public void followRightWall() | public void followRightWall() | ||
Line 44: | Line 46: | ||
} | } | ||
</ | </ | ||
+ | |||
First use the '' | First use the '' | ||
Line 53: | Line 56: | ||
{{ :: | {{ :: | ||
+ | Hints: | ||
+ | * Case One check: is the front clear? | ||
+ | * Case 2,3,4 you can move | ||
+ | * Case 2 versus case 3,4: is there a wall on 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? | ||
+ | ====== Links ====== | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
mazewalker.txt · Last modified: 2022/09/05 12:25 by frchris