Home › Guides › Memory Card Game Maker: Matching Pairs, Your Pictures

Memory Card Game Maker: Matching Pairs, Your Pictures

Make a memory card game by describing it: grid sizes, a fair shuffle, flip timing, scoring by moves and time, two players, and your own pictures on the cards.

Updated December 2, 2026 · 1325 words · more on this topic

A memory card game is a grid of face-down pairs, a fair shuffle, and one timing number: how long a wrong pair stays visible. Describe the grid size, what counts as a move, how the score is worked out and how a round ends. Then ask in the chat to upload your own pictures as card faces, and add a two-player mode or saved best scores.

The rules, and three bugs to rule out

Cards lie face down, and each picture appears exactly twice. The player flips two. A match stays face up. A wrong pair is shown briefly and turned back. The round ends when every pair is found.

Check three common mistakes in your first minute of play:

  • Tapping the same card twice counts as a match. A card that is face up must ignore taps.
  • A third card flips while two are showing. Lock the board for that moment, or define what the third tap does.
  • Matched cards still react. Once a pair is found, it is out of play.

Grid sizes by difficulty

The number of cards must be even, so 3 by 3 and 5 by 5 only work with one empty cell.

GridCardsPairsSuits
3 by 4126young children, a first try
4 by 4168the standard easy board
4 by 52010medium
4 by 62412hard on a phone
6 by 63618tablets and browser games

On a phone held upright, four columns is the comfortable limit: each card is about a thumb wide and a photo stays recognisable. Grow the board downwards, not sideways.

A fair shuffle

Fair means every arrangement of the cards is equally likely. The standard method is the Fisher-Yates shuffle: walk through the deck from the last card to the first, and swap each card with a randomly chosen one at or before its position. Shortcuts, such as sorting by random numbers, can favour some arrangements, so ask for the method by name.

  • Reshuffle every game. A board that repeats gets memorised.
  • Draw from a larger pool. With 20 pictures and 8 pairs, pick a random 8 each game.
  • Do not "fix" neighbours. A fair shuffle sometimes puts a pair side by side. That is luck.

Flip timing

The flip animation takes 0.2 to 0.3 seconds. A wrong pair stays visible for 1.0 second: 1.5 for young children, 0.8 for a speed mode.

If a wrong pair turns back too soon, the player cannot store the second card and the game becomes guessing. If it stays too long, every mistake feels like a penalty.

One rule serves both kinds of player: keep the pair visible for a full second, but let a tap on a third card turn the pair back at once and flip the new card. Careful players get their second and fast players never wait.

Scoring: moves, time, or both

Moves. One move is two cards flipped. The lowest possible count equals the number of pairs, and reaching it takes luck. A player with perfect recall needs about 1.6 moves per pair on average, which gives sensible star targets:

PairsThree starsTwo stars
610 moves or fewer15 or fewer
814 or fewer20 or fewer
1017 or fewer25 or fewer

Time. Start the clock on the first flip, not when the board appears, and stop it on the last match.

Both. One number is easier to compare: for example 1,000 points, minus 20 for each move above the pair count, minus 2 per second.

Two descriptions to copy

A solo game for a phone:

A memory card game for phones. Sixteen cards lie face down in a 4 by 4 grid: eight pairs of animal emoji. Tap a card to flip it, then a second one. A match stays face up. A wrong pair stays visible for one second and turns back. Count moves and time, starting the clock on the first flip. When all pairs are found, show moves, time and one to three stars, with three stars for 14 moves or fewer. Offer Easy 3 by 4 and Hard 4 by 6.

A game for two:

A two-player memory game on one phone. Twenty cards in a 4 by 5 grid, ten pairs of coloured shapes. Players take turns flipping two cards. A match scores one point and the same player goes again. A wrong pair shows for 1.2 seconds, then the turn passes. Show both names and scores at the top and highlight whose turn it is in that player's colour. When the board is clear, show the winner or a draw, and a Rematch button that reshuffles.

Your own pictures as card faces

The first version, playable in the emulator preview, uses emoji or shapes. For your own pictures, ask in the chat:

I want to use my own pictures for the eight card faces. Ask me for them one at a time, show each one cropped to a square, and keep the emoji for any card I have not uploaded yet.

An upload box appears in the chat. PNG, JPEG, WebP and GIF files are accepted, and pictures are resized to at most 1024 pixels on the longer side. The steps are in add your own pictures.

A good card picture has:

  • One subject, centred and large. A face in the corner of a wide photo will be cut off.
  • A clear difference from the others. Two beach photos look the same at card size.
  • A plain card back. One pattern for every card.

Use only pictures you are allowed to use.

Themes for a classroom or a family

A pair does not have to be two identical pictures. In a classroom game, which a teacher builds, a pair can be a word and its picture, a sum and its answer, a country and its capital, or a word and its translation. You paste the pairs into the chat as a list.

Make each pair a sum and its answer instead of two identical cards, such as 6 x 7 and 42. I will paste ten pairs, one per line. Use large text that fills the card.

A card holds one word or number at a readable size, not a sentence. The same lists work in classroom quiz games.

For a family game, use photos of relatives, pets or a holiday, show the name under a matched pair, and pick the 3 by 4 board with the longer flip time for small children.

Two players on one phone

Players take turns flipping two cards, and a match scores a point. The classic rule lets the player who matched go again, which allows long runs late in the game. For mixed ages, passing the turn after every move is gentler.

Both players watch every flip, so the phone stays on the table.

An even number of pairs can end level. For a winner every time, use an odd number: a 3 by 6 board has nine pairs. Play on two phones is covered in the two-player guide.

Best scores that stay

Keep one record per grid size, fewest moves and fastest time, and show them on the title screen. In a browser game shared by link, records that must last are kept on the game's backend, as the leaderboard guide explains.

Small fixes worth sending

The wrong pair turns back too quickly. Keep it visible for 1.5 seconds.

If I tap a third card while two wrong cards are showing, turn them back at once and flip the new one.

Show all cards for three seconds at the start in Easy mode.

Save the fewest moves and the best time for each grid size and show them on the title screen.

Deal the first board

Paste the solo description into the builder, play three rounds, and set the flip time before you add pictures.

Frequently asked

Can I use my own photos as the cards?

Yes. Ask in the chat to use your own pictures for the card faces and an upload box appears. PNG, JPEG, WebP and GIF files are accepted, and you need one picture for each pair.

How long should a wrong pair stay visible?

About one second is a good default. Use around 1.5 seconds for young children and slower players, and 0.8 seconds for players who want speed. Shorter than that turns the game into guessing.

How many cards should a memory game have?

Sixteen cards in a 4 by 4 grid, eight pairs, is the standard easy board. Twelve cards suit young children, and 20 to 24 cards are a real challenge on a phone screen.

Can two people play on the same phone?

Yes. Ask for a turn mode: players take turns flipping two cards, a match scores a point and the board shows whose turn it is. Both players see every flip, so no hand-over screen is needed.

What is a good score in a memory game?

A player who remembers every card they have seen needs about 1.6 moves per pair on average. For eight pairs that is around 13 moves, so 14 or fewer is a fair three-star target.

Build it now — free to start

Type the idea, sign in, and the agent builds it in your browser. Change anything by describing it.

Open the builder ›