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:
- Concentration.java
- DrawingPanel2.java
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.
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:
- The main method prints "Lab 9 written by [...]" or
"Project 3 written by [...]".
- Your submission was a Zip file named project3.zip
containing a folder named project3, which contains the other
files.
- If your submission contains files named
Concentation.java and DrawingPanel2.java.
- If your program contains a comment that describes what
the program does and contains a comment describing each method.
- If your program is indented properly.
[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.