Clever Quest Lab ← Games

Memory Game

Find every pair two cards at a time on three board sizes, alone or with a second player.

0Moves
0:00Time
0 / 8Pairs
–Best 4×4

Turn over two cards per move: click or tap a card, or use the arrow keys and Enter.

Keys: ← ↑ → ↓ move between cards, Enter or Space turns a card over, N new game, F full screen.

Runs on your device. Nothing you type or record is uploaded. Keeps working without a connection while the page is open. Works with touch. Saves your board size, symbol set and player mode, and your best moves and best time for each size; a game in progress is lost on reload.

Added · Updated : rebuilt with three board sizes, four named symbol sets, a two-player mode, best results per size and arrow-key play

Rules

All cards lie face down, and every symbol is on exactly two of them. A move is two cards: turn one over, then a second. If they show the same symbol they are a pair and stay face up; if not, they turn back after a second, or as soon as you pick the next card. The game ends when every pair is found. Alone, you play for the fewest moves and the shortest time; the clock starts with your first card.

The board sizes give 8 pairs (4×4), 10 pairs (4×5, laid out four wide on a narrow screen) and 18 pairs (6×6). Each game takes its symbols at random from a set of 18: animals, geometric shapes, the numbers 1 to 18 or the letters A to R. A screen reader hears each card by its name, for example "Card 6 showing fox", and a face-down card as "Card 6, face down".

Two players

With 2 players you take turns on one device. The player who finds a pair scores it and moves again; after two cards that do not match, the turn passes. The highlighted box shows whose turn it is, and each found pair is coloured and numbered for the player who took it. When the last pair is found, the player with more pairs wins; with an even number of pairs a draw is possible. Best results are saved only for one-player games.

This is the traditional rule of the card game known as Concentration, Pairs or Pelmanism, which is played with an ordinary deck of playing cards laid face down, where two cards of the same rank and colour make a pair.

What a perfect game means

The fewest possible moves equals the number of pairs, 8 on a 4×4 board. That needs luck on every move: each time the second card has to match a first card you have never seen. On 4×4 the chance is 1 in 15 × 13 × 11 × 9 × 7 × 5 × 3 = 2,027,025 games.

A fairer target is perfect recall: a player who never forgets a card and follows the method below. A simulation of 200,000 random deals per size (run on 25 October 2026) gives these averages:

BoardPairsAverage movesFewest in the run
4×4812.49
4×51015.612
6×61828.524

The averages agree with the result of Daniel J. Velleman and Gregory S. Warrington (2012), who showed that with optimal play the expected number of moves for n pairs grows as

(3 − 2 ln 2) n + 7/8 − 2 ln 2 ≈ 1.61 n

So a 4×4 game in 12 moves or fewer is as good as flawless memory on an average deal, and it takes some luck to go below that.

A systematic way to turn cards

  1. If you know where both cards of a pair are, take that pair first.
  2. Otherwise turn over a card you have not seen yet. If you have seen its partner, turn the partner and take the pair.
  3. If you have not, turn over a second unseen card rather than one you already know: it may match by luck, and if it does not, you have learned one more card.
  4. Turn the unseen cards in a fixed order, row by row from the top left, so that the cards you have not seen are always the ones further along and you only need to remember the places of the ones you have.

This is the method the simulation above plays.

Controls

With reduced motion turned on in your system settings, the cards turn over without the flip animation.

Sources