Mystery Bug

Create your own class named MysteryBug that extends Bug similar to how BoxBug extends Bug. Override the act method so that it moves in an interesting behavior or pattern. You may use any inherited Actor or Bug methods and you may add properties. You will be graded partly on how interesting your bug's behavior is. Your code and algorithms should be as efficient as possible.

Use BoxBugRunner or any other runner/client program to test your MysteryBug.

Your program must follow our class Coding Standards EVEN THOUGH CODE THAT YOUR COPIED FROM A WEBSITE DEMO OR THE COLLEGE BOARD MATERIALS MAY NOT FOLLOW THEM.

Preconditions:

    • none

You must hand in the following on separate pages stapled in this specified order:

    1. The source code for your MysteryBug class.
    2. Call the instructor to your computer in order to have him do a runtime grade for this project.
    3. Copy the MysteryBug.java file to your HandIn folder.