Lesson 75
30 XP

Memory Game

Build a Card Matching Game

Step 1 of 5

Understanding Memory Games

A memory game challenges your memory by hiding pairs of matching cards face-down. Flip two cards at a time to find matching pairs!

Game Rules:

  • All cards start face-down
  • Click a card to flip it over
  • Click a second card to find a match
  • If they match, they stay face-up
  • If not, they flip back face-down
  • Match all pairs to win!
// Card Object Structure
const card = {'{'}
id: 0,
emoji: '🎮',
flipped: false,
matched: false
{'}'}

Sample Cards:

?
🎮
?
?