CHAPTER 5
var firstcard = -1;
var secondcard;
var backcolor = "rgb(128,0,128)";
var tablecolor = "rgb(255,255,255)";
var deck = [];
var firstsx = 30;
var firstsy = 50;
var margin = 30;
var cardwidth = 100; You may need to
change this if you
want your pictures to
be a different width...
var cardheight = 100; ...and/or height
var matched;
var starttime;
var count = 0; Needed to keep
count internally
var pairs = [ The array of pairs of
image files for the
five people
["allison1.jpg","allison2.jpg"], This is where you
put in the names of
your picture files
[ "grant1.jpg","grant2.jpg"], ...
["liam1.jpg","liam2.jpg"], ...
["aviva1.jpg","aviva2.jpg"], ...