CS 1063  Lab 9:  Checkpoint for Project 3

Objectives

Hand-in Requirements

All projects and laboratories will be submitted electronically through Blackboard.  Zip up your entire lab directory to submit as the source.  (Right click on the lab folder and follow the 7-Zip > Add to "project3.zip" or follow Send To > Compressed (zipped) Folder.)  The lab folder should include the following:

Tasks

Read Project 3.

Download project3.zip and run it to see how it behaves.  Note that DrawingPanel2.java is included in the zip file.

For this lab, you need to identify all the code which assumes that the game has three Colors and three columns and modify the code to handle six Colors and six columns.  You should initialize the Color arrays to correspond to the following colors.

Concentration board after matching all colors

Rubric

Your program should compile without any errors.  A program with more than one or two compile errors will likely get a zero for the whole assignment.

The following criteria will also be used to determine the grade for this assignment:

  • [2 points] If your submission includes the following:
  • [3 Points] The window is the correct size.
  • [3 Points] The window displays a board with two rows and six columns.
  • [3 Points] Each Color array has six colors in the order shown in the above picture.
  • [3 Points] The getClickRow method returns the correct value.  Note that this method should return -1 if the user does not click on the board.
  • [3 Points] The getClickColumn method returns the correct value.  Note that this method should return -1 if the user does not click on the board.
  • [3 Points] The Concentation game can be played with the colors in fixed positions as shown above.