/memory-game

A React memory game

Primary LanguageJavaScriptMIT LicenseMIT

memory-game

A React memory game

Description

This project is a memory game built using React. The game displays a set of images that the user can click on, and the goal is to click on each image only once. The user's score increases for each correct click and resets to zero if the same image is clicked more than once. The images shuffle themselves in a random order after each click. The game restarts when the user's score is reset.

Installation

To run this project locally, follow these steps:

  1. Clone the repository: git clone https://github.com/Sooey-99/memory-game
  2. Navigate to the project directory: cd memory-game
  3. Install dependencies: npm install
  4. Run the application: npm start

Use

  1. Open the application in your web browser after installation.
  2. Click on an image to start the game.
  3. Keep clicking on different images to increase your score.
  4. If you click on the same image more than once, your score resets.
  5. The images shuffle randomly after each click.
  6. Try to achieve the highest score possible!

Built with

  • React
  • React Hooks
  • JavaScript
  • CSS

Credits

The project was created as part of an activity with instructions provided by EdX.

License

This project is licensed under the MIT License.