And you thought computers were smart!

Well we seem to have all we need to get our game up and running.
But the hardest part is still to come.
This is where we realise that we have to spell out every single step very precisely.
Imagine this conversation:

You: If the two cards are ...

Computer: What two cards?

You: The cards I just clicked.

Computer: Oh! Perhaps start again.

You: Ok. I've clicked a card.

Computer: Got it! What now?

You: Turn the card over.

Computer: Done. Next?

You: Do nothing.

Computer: Easy!

You: I've clicked another card.

Computer: I know ... turn it over!

You: Sure. Now ... are the two cards equal?

Computer: What two cards? I can only look at one card at a time. And how can they be equal? All my 52 cards are different!

... and so on ...

You may like to try writing out a set of instructions (in English) that will make the game possible.
You may even go as far as playing with 4 real cards.