Memory Game preview

Memory Game

A classic card-matching game that tests your attention and recall.

JavaScript HTML CSS

How it was implemented

Cards are generated from a shuffled set of pairs. Clicks reveal cards and a simple match check controls the game state, with subtle animations for feedback.

What I learned

  • Hands-on DOM manipulation and event handling for interactive components.
  • Using the spread operator (...) to clone/merge arrays for shuffling and pairing cards.
  • Deferring UI updates with setTimeout(...) to time flips and match feedback.