I am puzzling about the computer part.
How to make the computer pick the cards that has the right animation?
When there is 2 cards that needs to be picked by computer
and the condition to pick is: Animation2
AND the computer must not pick if only one card is picked but two. (Since in memory game, both cards must be shown first and only afterwards destroyed)
How to do this? I have tried many things: I have counted the sprites, I have spawn another sprite on top of it to "mark the card" etc.
How to count those sprites that have animation2 and if there are 2 of them then destroy them. (If only one has animation2 it shouldn´t be destroyed at once)