User Tools

Site Tools


mazewalker

This is an old revision of the document!


Write an instruction followWallRight for the MazeWalker class, assuming that whenever a robot executes this instruction there is a wall directly to the right.

Here are four of the different position changes that the robot must be able to make. This instruction is the cornerstone for a program that directs a robot to escape from a maze (for homework later)

MazeWalker.java

MazeWalkerTester.java

Once the tester shows that the four cases are handled correctly, here is a maze runner class with its own maze:

MazeWalkerRunner.java

mazewalker.1567135316.txt.gz · Last modified: 2019/08/29 23:21 by frchris

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki