Skip to content

DLQuake/memory-game-react

Repository files navigation

Memory Game

This project is a memory game built with React.js. It allows players to test their memory by matching pairs of cards.

Getting Started

To get started with the project, clone this repository to your local machine and navigate to the project directory in your terminal.

Prerequisites

Make sure you have Node.js and npm installed on your local machine.

Installing

After navigating to the project directory, you can run the following command to install dependencies:

npm install

Running the App

Once the dependencies are installed, you can start the development server by running:

npm run dev

This will start the app in development mode and open it in your default web browser at http://localhost:5173/.

How to Play

  • Click on any card to reveal its image.
  • Click on another card to try to find its matching pair.
  • If the images on the two cards match, they will stay face up.
  • If the images do not match, both cards will be flipped face down again.
  • Continue until all pairs have been matched.

Built With

  • React.js - JavaScript library for building user interfaces
  • Vite - A fast build tool for modern web projects
  • Bulma - A modern CSS framework based on Flexbox

Acknowledgments

  • This project was bootstrapped with Vite.