CS242: Advanced Programming Concepts in JAVA

Fall 2008

Program 11

Due: 10:00 A.M., Friday, 12/05/08

In this assignment, you are to extend Program 10 by implementing the commands that are displayed in the dropdown list under the Play menu and the Help menu. These commands should work as they did in Program 7, but with a GUI instead of the command window. The user should be able to execute them completely without entering any text, just by using the mouse. How this is done is up to you. The main criterion is that the program should be easy to use. The commands are:

  1. remove
    Removes the piece from the selected square.
  2. place
    Places a piece on the selected square.
  3. move
    Moves a piece from one square to another.
  4. show
    Displays the contents of the selected square (empty or the name of the piece) as text within a graphics component.

Your program must follow these implementation restrictions:

Your grade will be based on how well you design and implement the code, how thorough your error handling is, on good programming practices, and on thorough testing. Coding guidelines for Java programs are posted here.

Add comment documentation to your program (all classes) and use javadoc to extract the documentation into an HTML file. Include a javadoc comment for each class and each method. The class comment should include your name and the date (use the @author tag). Method comments should briefly describe the purpose of the method, its arguments, and what, if anything, it returns (using @param and @return as appropriate).

The physical location of the javadoc comments is critical. A class comment must immediately precede the line containing the keyword class, and method comments must immediately precede the method.

When you have commented your source files, run javadoc to create the .html files and view them in a browser of your choice.


What to submit:
Your grade on the program will be based on: