Computer Science II --- Haas --- Karel Project mazeBot
Objective: Create a Karel J Robot program which moves a robot through a maze
- This program will move a robot from the starting location of 2,2 completely through a maze.
- The end of the maze will be marked by a beeper.
- Make a new robot class called mazeBot which extends the Robot Class.
- mazeBot must create new methods that return boolean values, (
true or false), check out the rightIsClear() method found in
karelcommands.htm to find out more.
- The new methods should be named rightIsClear() and leftIsClear(), and should do
nothing more than return true or false depending on if a wall is on the right or left of the
robot.
- mazeBot must also have a method called runMaze which moves a robot through a maze.
- Make another program called mazeTester which makes a new mazeBot and has it run a maze.
- Use good programming techniques, do not make methods overly complex.
- As always make sure your program is well organized and well documented, and you know how it works.
Below is an example of a maze world
