CSCI 446 Unit #3 Part II
Specific Requirements
This assignment is worth 56 points. Game play requirements:
- (6) Reasonable game board layout with 3 sections
- (4) Show instructions when program loads (
onload
).
- (4) Start screen shows only backs of all cards
- (4) When a card is clicked, the card image is displayed
- (4) If the same card is clicked twice, an error displays and the player must
choose a different card
- If 2 matching cards are turned over:
- (4) The player whose turn it is "wins" the prize (it's displayed in sidebar)
- (4) Both cards remain visible
- (8) If these are the last available cards, a message displays that
the game is over, and who won (could be a tie).
- (4) Otherwise, it remains that player's turn
- If the 2 cards do not match:
- (4) the cards will be turned back over (i.e.,
backs of cards displayed), when the next player selects their first
card. WHY wait? If you turn them over immediately when clicked, users may
not have time to see both cards.
- (4) game play moves to the next player
Ease of grading criteria.
- (1) Name your file
XZconcentration.html
, where XZ are your
initials.
- (1) Create a zip file with your html, css and image files for BOTH parts.
- (4) Include statements and comments in your code to enable the grader to test with
all cards visible. I have the following comments:
/* FOR TESTING: comment out these 2 lines */
- these are the lines that turn cards back over if no match
- when commented out, the cards are always visible
/* FOR TESTING: reverse the commenting of these 2 lines */
- normal version shows card backgrounds, reversing comments causes all
cards to be visible.
NOTE: Your comments will vary, of course, depending on your code,
but you must have FOR TESTING so grader can easily find your comments
and determine how to test.
Submit
Zip and submit both parts to Canvas