
Your job is to implement this game. You do not need to worry about taking turns. You only want to find the matches in the least number of clicks. I have set up the framework for you, and handled most of the functionality. You simply have to fill in some of the logic.
You should start by save memory.html to your www directory. You'll also need memory-imgs.zip. Download it to your www directory, and unzip it. (Check the permissions on everything to make sure its accessible from the browser!) Go through the code and make sure you understand what's happening. I have added comments to help you.
Your main task is to fill in the checkMatch() function. Look for the lines that begin with TODO. You only have to type a few lines!