Frontendx
README.md
SOLUTION.md
main.tsxentry
App.tsx
App.css
index.html
vite.config.ts
Installed
react@^19.2.0
react-dom@^19.2.0

Memory Card Matching Game

mediumuigamestateHarnessUI Component

Description

Create a memory matching game with a grid of cards. Each card hides a symbol until clicked. Matching pairs remain face up, while mismatched cards turn face down after a short delay. Display moves, matched pairs, a win message, and a restart control.

Example 1:

Click two matching cards => both remain revealed and the matched-pair count increases.

Constraints

  • The board must contain at least four cards and each symbol must occur exactly twice.
  • Count one move after each second card is selected.
  • A completed board must show a win message and allow a new game with Restart.
Track selected and matched card indexes separately.
Test Results

Memory Card Matching Game

A card-matching game where players flip pairs and clear the board.