All problems
Foundational·🎮 Gaming·Zynga

Design
Memory Matching Card Game

Design a memory card-matching game where players flip pairs of cards trying to find matches.

This is a Low-Level Design (LLD) problem. New to LLD vs HLD? Start here.

#OOP#State Machine
6F + 2NF requirements inside

01 -  Why interviewers ask this

It's a compact way to test explicit state-machine thinking for user interaction flows (flip → check → resolve) rather than ad-hoc flags scattered through the UI logic.

02 -  Where this system exists in the real world

You interact with this design every day.

Mobile memory/concentration card games

Educational matching games for kids

Multiplayer party game platforms

03 -  What you'll master

Solve this once. Know it forever.

01

Model a flip-check-resolve interaction as states

02

Implement fair shuffling algorithms

03

Support turn-based multiplayer scoring

04 -  What you'll design

6 functional · 2 non-functional requirements.

Generate a shuffled board of N pairs of cards (face down)

5 more requirements inside

Sign in to unlock the full brief and start designing

05 -  Companies that ask this

You may face this exact question in your next interview.

Z
Zynga

Ready?

Open the canvas.
Design it yourself.

See all requirements, use staged hints, run your code, and compare with community discussions - all on the same canvas.