COMPUTER SCIENCE Summer 2006
Unit 1, Lab02 Escape the Maze

  1. Read page One-10. The assignment is at the bottom of the page, the last paragraph.

  2. You need to create two Java files:

  3. See the "shell" of the file Athlete.java on page One-10. This creates the Athlete class.

  4. You need to complete the definitions for new commands which an Athlete can do, but a Robot cannot do. These commands are turnAround() and turnRight()

  5. Compile this file Athlete.java, but do NOT run it. This file does not contain the main driver function. Compiling the file creates Athlete.class which will be used by Lab02.java.

  6. The file named Lab02.java begins in a similar fashion as Lab00 and Lab01. A difference is that now you'll use the Athlete class rather than the Robot class. Compile and Run this file. Lab02.java is the file with the main driver function