Adventure time! We're going to start working on our first game made with Moai SDK, a simple Concentration-like game. For this you'll need some understanding of Lua syntax, nothing too fancy, just the basics. If you've never used Lua before, it'd be a good idea to read some quick introduction material and have a syntax cheat sheet around when reading this book.
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: