From the Super Mario Wiki
The minigame is a memory game similar to Memory Match from Mario Party, as the floor is laid out with three rows of four ? Panels. The objective is to flip the panels over using Mario's hammer to find matching pairs of Battle Cards within the time limit, which varies depending on the Spinning-Door's location. For each pair Mario finds, the card will be added to his inventory, and two seconds will be added to the clock. If Mario flips two non-matching panels, he will be stunned for a brief moment before the panels flip back over. Ten of the twelve ? Panels are Battle Cards, while the remaining two affect the timer: one adds five seconds when flipped over; the other subtracts ten seconds.
"Hit a card with your hammer to flip it. Try to find all of the pairs before time runs out!"
Names in other languages