jQuery is enough to get simple board games with few code lines.
Memorize is one of the simplest games of this genre.
Combine them and obtain your first JavaScript game in few minutes.
Show any compact set of unordered pairs of cards.
The cards will be hidden and shown when the player interacts with them.
Every pair of cards clicked will be checked for equality, in which case they will remain permanently visible. If they are different, they will hide again.
Compact and rectangular area where the playing cards are grouped
Select playing cards between available ones and, if possible, without repeating.
Shuffle the deck to unsort the playing cards.
DOM and Style manipulation
Code: https://github.com/javierbeaumont/memo.js
Slides: https://javier.beaumont.eus/slides/memo.js/
Live Demo: https://javier.beaumont.eus/slides/memo.js/demo
/
#