For those readers who are not familiar with this game, let's describe it.
The game requires a set of tiles. There must be an even number of them. The tiles have figures (in pairs, since we're going to match them) on one side and a flat color or identical image on the other side (the back of the tile).
The gameplay is as follows:
Place all the tiles facing down and shuffle them. This way you hide the pairs and have no idea where they are.
Then, you have to choose two tiles and flip them, to reveal the images.
If they're different, you have to flip them back again and pick a different pair.
If they are the same, you remove them from the board and the game continues with two tiles less.
The game ends when there are no tiles left.
We will implement this game, with the addition of a ticking clock, so things get a little bit more challenging.
In order to do this we'll examine all of Moai SDK's basic features and how to use them.