/Memory-Game-in-HTML

Memory Game in HTML, JS and CSS

Primary LanguageJavaScript

Memory Game in HTML, CSS and JS

In this Project at OpenGenus, we explored Memory Game in HTML, CSS and JS.

This is the code repository for the game. In this game, we were focused on using DOM and adding elements.

The article related to this repository is here


The basic Rules of this game are:

  1. Match the cards before 30 moves or 5 minutes.
  2. After the close button is hit the time starts to tick.
  3. The page will auto-reload when the game is over.
  4. You can't choose other tiles nor can you match yourself.
  5. After wrong matching, wait for a second to match again.

Also, take a look at these articles from OpenGenus,

  1. 2048 in Python. here
  2. Tic tac toe game in Python. here

Interested in adding, modifying or contributing to this?


  1. Fork this repository to your GitHub profile.
  2. Clone it to your local system by using the git clone command. git clone [URL]
  3. Taadaaa! You got your own version of this file which you can now make changes to.
  4. Make necessary changes and commit every step of the process.
  5. You can commit then to your git repository by, git add [filename] git commit -m [msg]
  6. As this is a forked repository, we can directly push the changes. Remember to check Git docs if you are stuck somewhere. git push origin [main/branchname]
  7. Raise a pull request from your current branch/repository to OpenGenus. Remember to create a branch every time you raise a pull request.