CS 117 Assignment: Fish

Assigned Wednesday, 1/22/03.
Due Wednesday, 1/29/03 by 8:30 AM.

You may work with a partner on this assignment.

For this assignment, you will write a Fish class that is much like the Die and Target classes you have written before. One Fish instance will store enough information to draw a fish in a DrawingBoard. That is, each instance should have data members that keep track of the color and position of the fish, as well as the direction it is facing (left or right). The Fish class should also have a draw method with the interface

public void draw( DrawingBoard board )

You may choose for yourself what other methods to give your Fish class.

You will also write a FishTester class with a main method that does the following:

Start early, have fun, and keep in touch.