In this assignment, you are to take the Wator program for the previous assignment and turn it into an applet. The applet should display the contents of the ocean and should provide a GUI (Graphical User Interface) that gives the user some control over the simulation. Here are some suggestions for the controls that you put in the GUI; but they are suggestions only, not requirements. The only requirement is that you provide the user with some control over the simulation.
In the previous assignment you were to read the following input
parameters from the command line (or equivalent):
|
If you try to use threads (strongly recommended), then instead of a fixed "Number of steps" you could have Start and Stop buttons (or a single button whose label changes) to control the simulation.
The other input parameters are all good candidates for things that the user could control. I will provide a "Life" applet that you can use for ideas. It's really pretty much up to you; you can get full credit for a fairly basic implementation.
|
Note that no particular documentation is required for this assignment.