Memory Game
This memory game is a card-match board in three sizes, 4 by 4, 6 by 6 and 8 by 8, with a timer and a move count.
- Genre
- Puzzle
- Players
- 1
- Works on phone
- Yes
- Length
- Until every pair is found
- Made with
- Claude
- Maker
- Claude Game Studio
How to play
- Pick 4 × 4, 6 × 6 or 8 × 8, then click or tap a card to turn it over.
- Turn a second card. Two cards with the same shape and colour stay face up; any other pair turns back after a moment.
- The timer starts on your first card. Every pair of cards you turn is one move. New game shuffles a fresh board.
Tips
- Name each card as you turn it, such as coral star, and say where it was. A name is easier to keep than a picture.
- Turn a card you have not seen first. If you already know its partner, take the match. If you do not, turn a second unseen card instead of repeating a known one.
- On the 8 × 8 board, work one corner at a time. A small area is easier to hold in your head than 64 cards.
About Memory Game
Memory Game is the classic card-matching game, also called Concentration. All the cards start face down. You turn two at a time, and a matching pair stays up until the board is clear.
Each card shows a shape in a colour: eight shapes in four colours, 32 different faces in all. The 4 × 4 board uses 8 of them, the 6 × 6 board 18 and the 8 × 8 board all 32. A pair has to match on both shape and colour, so a coral star is not a violet star.
The game counts moves, time from your first card, and your best moves for each board, saved in this browser.
How many pairs are on each memory board?
The 4 × 4 board has 8 pairs, the 6 × 6 board has 18 and the 8 × 8 board has 32.
What is a good score in a memory game?
Fewer moves is better. The least possible is one move per pair: 8, 18 or 32. Every card you turn that you have already seen costs extra.
Does the memory game work on a phone?
Yes. Tap the cards. On a 414-pixel-wide phone each card on the 8 × 8 board is about 45 pixels wide.

About the rules and tools
- Wikipedia: Concentration (card game). The card game this board follows: turn two cards at a time and keep the matching pairs.
- MDN: localStorage. Your best moves for each board are kept with browser storage, and the game still plays when storage is blocked.
How this game was made
A player who remembers every card they have turned over finishes 4 × 4 in about 12 moves, 6 × 6 in about 29 and 8 × 8 in about 51. Those are the middle results of 300 games per board, played by this game's own code.
This was the prompt:
Make a card-match memory game with 4 by 4, 6 by 6 and 8 by 8 boards, a timer and a move count.
- Build time
- 2.1 minutes
- Model cost
- $0.43
- Game file
- 12.9 kB
Claude Sonnet 5.5 wrote and tested this game in Claude Code with the One-Shot Games kit. The kit measured the time and the cost. Open the build measurements.