My instructions:

1. I've clicked a card. Remember it and turn it over.

2. I've clicked a card. Turn it over.

3. Work out the values of this card and the remembered card.
(The value is worked out by dividing the card number by 13 and looking at the remainder.)

4. If the values are the same, vanish both cards.

5. If the values are different, turn both cards over.

6. Forget the remembered card and go to step 1.


On the next page I'll show you how I made this all happen in JavaScript, then, on the next page, I'll try to explain each new piece to you.