The classic memory game. Below are card which begin face down. Click on one to turn it over. Try to find the second card that matches the first. If the second does not match,
both cards return to a face down position. If they do match, the cards are removed to reveal part of the background image.
The applet may be downloaded for free by clicking on the TAR-file link below (read the FAQ if you're not sure what to do with a TAR file). The FAQ also has step by step instructions on how to embed an applet into your own webpage.
Once unTARed, you should find the following classes (plus a '.jar' file if you want to use the archive= attribute in the <applet> tag):
Below are descriptions of all the parameters you may use to customize the applets to your webpages. Be sure to enclose any parameters that contain white space in double-quotation marks. Most parameters have default values in case you do not specify your own values, but the first two parameters (AUTHOR and COPYRIGHT) are necessary. If you are not sure how to incorporate an applet into a webpage (with its parameter names and values), looks at the source of this webpage and the applet embedded for an example, or read the FAQ page.
AUTHOR: This parameter must appear exactly as follows:
<param name=AUTHOR value="Eric Harshbarger, http://www.ericharshbarger.org">
COPYRIGHT: This parameter must appear exactly as follows:
<param name=COPYRIGHT value="Concentration applet, Copyright 1998, Eric Harshbarger">
BACKGROUND: This parameter points to an image file that is used as a background to the applet. All the various texts of the applet will be painted on top of this image. Consult the FAQ page if you are unsure about what image formats you may use.
BGCOLOR: This parameter indicates the background color of the applet. Consult the FAQ page if you are unsure what format to use for the parameter's value.
FGCOLOR: This parameter indicates the foreground color of the applet. Consult the FAQ page if you are unsure what format to use for the parameter's value.
FONTNAME: This value indicates the fontface used by the applet. Java1.0.2 has the following values from which to choose (must be spelled exactly): TimesRoman, Dialog, Courier, Helvetica, DialogInput, Symbol.
FONTSIZE: This value indicates the size of the font used by the applet.
FONTSTYLE: This value indicates the style of the font used by the applet. The value should be one of the following: plain, bold, italic, bolditalic.
COLUMNS: This parameters tells the applet how many columns of cards to display. The default is 4.
ROWS: Indicates how many rows of cards to display. The default is 4.
IMAGE.#: This series of parameters defines the images of the cards which are to be matched. The first parameter is IMAGE.0, then IMAGE.1, and so on. Each image will appear
twice in the puzzle (since the idea is to find hidden pairs), so you should define ROWS * COLUMNS / /2 number of these. All images should have the same dimension.
IMAGE.FACEDOWN: This is a single image is the generic 'facedown' image that appears when an image is not flipped over. The dimensions of this image should be the same as the dimensions of
all the IMAGE.# images.
IMAGE.MASK: If you would like to embellish the look of the cards, you may define a 'mask' image that is some type of transparent gif that sits atop the other images after they are painted. For example, the applet above uses a shadowed effect overlay.
SOUND.PICK: A sound file that is played whenever a card is picked to flip over. Consult the FAQ if you are unsure what types of sound files you may use.
SOUND.CORRECT: A sound file that is played whenever a pair of cards is correctly matched. Consult the FAQ if you are unsure what types of sound files you may use.
SOUND.INCORRECT: A sound file that is played whenever a pair of overturned cards do not match. Consult the FAQ if you are unsure what types of sound files you may use.
SOUND.SOLVED: A sound file that is played when the game is solved (all cards are matched). Consult the FAQ if you are unsure what types of sound files you may use.
The Applet Depot and all associated applets, text, scripts, and images, Copyright © 1998-2002 by Eric Harshbarger unless otherwise noted. 'Java' is a registered trademark of Sun Microsystems Incorporated.