Tested tool guide
Tested browser tools
Checked August 16, 2026
What Memory Card Matching Game does, with a checked example
The Memory Card Matching Game deals a grid of face-down cards onto the board, each card paired with exactly one match. A move flips two cards: a matching pair stays face up, a mismatch turns both back over. Difficulty levels change how many cards the grid holds, and the round is scored by a move counter and a timer, with the best round kept for comparison. The usual surprise: every two-card flip counts as a move, so the best possible score is exactly one move per pair, and a careless reveal costs you twice.
Worked example
A concrete input and expected output from the current implementation.
Input
Play one round on an 8-pair board (16 cards) and win in 11 moves.
->
Expected output
All 16 cards end face up. The move counter reads 11, made up of 8 matching moves (one per pair) and 3 missed moves in which both cards flipped back. The timer shows the elapsed time, and the best-score row updates if 11 beats the saved best.
Every move flips exactly two cards, and each of the 8 pairs is matched exactly once, so 8 of the 11 moves are matches and the other 3 are mismatches. The move count can never go below the number of pairs, which is why 8 is the floor for this board.