Skip to content

SIVAGURUSR/JsDOM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Game

Description

This is a simple memory game where players flip cards to find matching pairs. The game is built using HTML, CSS, and JavaScript (DOM manipulation).

How to Play

  1. Click on a card to flip it over.
  2. Click on another card to find a matching pair.
  3. If the cards match, they will remain face-up. If they do not match, they will flip back over after a short delay.
  4. The game is won when all pairs are found.
  5. Click the "Restart Game" button to shuffle the cards and start a new game.

Setup

  1. Clone or download this repository.
  2. Open the index.html file in a web browser.

Technologies Used

  • HTML: Structure of the game.
  • CSS: Styling and responsive design.
  • JavaScript: Game logic, including shuffling, card flipping, and matching logic.

Features

  • Responsive design: Works well on both desktop and mobile devices.
  • Shuffle function: Randomizes card positions at the start of the game.
  • Restart function: Resets the game board and shuffles the cards.
  • Clean, well-documented code.

Summary

This project contains everything needed to set up and play a basic memory game. The game is responsive, features a shuffle function, handles game logic like matching pairs, and includes a restart function to reset the game.