Coder Social home page Coder Social logo

memorygame's Introduction

Memory Game

Welcome to the Memory Game repository! This is a classic memory game implementation using HTML, CSS, and JavaScript. The objective of the game is to find matching pairs of cards by flipping them over one by one.

Features

  • A grid of cards that are randomly shuffled at the beginning of the game.
  • Cards can be flipped over to reveal their hidden symbols.
  • The player can only flip two cards at a time.
  • If the two flipped cards match, they disappear.
  • If the two flipped cards do not match, they are flipped back after an alert.
  • A congratulations alert pops up with game score is displayed when all cards are matched.
  • Page reloads once all the cards match.

Technologies Used

  • HTML
  • CSS
  • JavaScript

Getting Started

To play the game locally, follow these steps:

  1. Clone the repository:

    git clone https://github.com/OzzDm/MemoryGame.git
  2. Navigate to the project directory:

    cd memory-game
  3. Open the index.html file in your preferred web browser.

How to Play

  1. When you open the game, you will see a grid of facedown cards.
  2. Click on any card to flip it over and reveal the symbol.
  3. Flip another card and try to find a matching pair.
  4. If the two cards match, they will remain open.
  5. If the two cards do not match, they will flip back after a short delay.
  6. Continue flipping cards and finding matching pairs until all cards are open.
  7. The game will display a congratulations popup with your score when you win.
  8. The game restarts automatically once all the cards are matched.

Contributing

Contributions are welcome! If you find any bugs or want to add new features to the game, feel free to open an issue or submit a pull request.

When contributing, please follow these guidelines:

  • Fork the repository and clone it to your local machine.
  • Create a new branch for your feature or bug fix.
  • Commit your changes with descriptive commit messages.
  • Push your branch to your forked repository.
  • Open a pull request explaining the changes you made.

Acknowledgments

  • The Memory Game project is inspired by the classic concentration game.
  • Special thanks to the contributors who have helped make this project better.

Enjoy the game! If you have any questions or feedback, feel free to reach out.

memorygame's People

Contributors

ozzdm avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.