The rules, the strategy a perfect memory would use, and how to get close to it
Memory, also known as Concentration, Pairs or Pelmanism, is one of the simplest card games there is. A set of matching pairs is shuffled and dealt face down, and players turn over two cards at a time looking for matches. It is traditionally played on a table with an ordinary deck of cards, and it is often one of the first card games children learn, but it rewards adults who take it seriously just as much.
On PlayVersusAI, Memory is a solo game. There is no opponent racing you to the pairs. Instead, you are scored on efficiency: the number of moves it takes to clear the board. That changes the character of the game. In the multiplayer version a match earns another turn and luck tends to even out, but solo, every wasted flip goes straight onto your total. Good play means getting as much information as possible from every card you turn and never losing track of what you have already seen.
You cannot flip a card that is already matched, or the same card twice in one move, so every move is a genuine attempt at a pair. To abandon a game and deal a fresh one, click any of the size buttons above the board, including the one already selected.
Imagine you never forgot a card. What is the best way to play? Each move should run like this: flip a card you have never seen. If you already know where its partner is, flip the partner and collect a guaranteed match. If you do not, flip another unseen card. It might match the first by luck. If it matches a card you saw earlier instead, you now know where both cards of that pair are, so collect them on your next move. If neither happens, you have still learned two new positions.
Two rules are hidden in that routine. First, never open a move with a card you have already seen unless you are collecting a known pair, because it gives you no new information. Second, never spend your second flip on a known card that is not the partner: it cannot make a match and it teaches you nothing. Following this routine is the baseline for good play. Everything else below is about making your real memory work more like a perfect one.
Exploring in a random order is the biggest single cause of wasted moves, because randomly chosen positions are hard to remember. Explore along a fixed path instead: left to right across the top row, then the next row down. Every grid here is four cards wide, which is convenient. Each row is a short line of four that you can hold as one unit, such as "row one: dog, fox, unknown, cat". On Hard, with eight rows, treat the top four rows and the bottom four as two separate 4×4 blocks and finish exploring one before moving deep into the other.
Name every card. Saying "rabbit, row two, end" to yourself links a word to the picture and the position, which sticks far better than a glance. Anchor to the edges. Corner and edge cards are the easiest to place; remember middle cards by where they sit relative to them ("one in from the left corner"). Keep the open list short. At any moment there are only a handful of cards you have seen whose partners are still hidden. Collect pairs promptly so that list stays small, and run through it quickly in your head after each mismatch. Watch the look-alikes. The mouse and hamster appear at every size, and the tiger and lion join them on Medium and Hard. Give them clearly different names so they don't get swapped in your memory.
No game can take fewer moves than there are pairs: 8 on Easy, 12 on Medium and 16 on Hard. Hitting that number needs a lucky match on every pair, so in practice it only happens on small boards, and rarely. A more useful benchmark is what a player with perfect memory would score using the routine above. Mathematical analyses of solitaire Memory put the average at a little over 1.6 moves per pair, which is roughly 12 to 13 moves on Easy, about 19 on Medium and about 25 on Hard. Even with flawless recall, bad luck can push a game up to one move short of twice the pair count (15 on Easy). If your scores sit near 1.6 times the pair count, your recall is close to perfect. If they are well above twice the pair count, you are re-flipping cards you have already seen.
Difficulty only changes the number of cards. The rules, the flip-back pause and the scoring are the same at every size.
| Difficulty | What changes |
|---|---|
| Easy | 8 pairs on a 4×4 grid. Always the same eight animals (dog, cat, mouse, hamster, rabbit, fox, bear and panda) in new positions. The minimum is 8 moves, and a perfect memory averages around 12 to 13. |
| Medium | 12 pairs on a 4×6 grid, adding the koala, tiger, lion and cow. This is the size the page opens with. Perfect play averages about 19 moves. |
| Hard | 16 pairs on a 4×8 grid, adding the pig, frog, monkey and unicorn. The cards are shorter so that eight rows fit, and positions are hardest to keep apart. Perfect play averages about 25 moves. |
Free to play - no account needed