dorkhub

memory

⭐ ‎ JavaScript Memory Game.

taniarascia
JavaScript12351 forksMITupdated 6 years ago
visit the demogit clone https://github.com/taniarascia/memory.gittaniarascia/memory

⭐ JavaScript Memory Game

License: MIT

Fun and simple memory game, like the one from Super Mario 3, made with plain JavaScript.

Read the tutorial | View the demo

Instructions

Just want to view the source of all the steps from start to finish? View steps.

  • Display 12 cards.
  • Duplicate the cards to have 2 sets of 12.
  • Randomize the display of cards.
  • Add selected style for selected cards.
  • Only allow two cards to be selected at a time.
  • Determine if two selected cards are a match and hide them.
  • Reset guess count after 2.
  • Add delay to selections.
  • Show back of card initially and flip on select
  • Finished game!

Author

License

This project is open source and available under the MIT License.

more like this

meine

meine 🌒 - A CLI file manager and system utility built with Textual. It combines intuitive command parsing with rich t…

Python50

search

search projects, people, and tags