Done by Html
, Css
with using ,javascript
.
- The game play with one player.
- matching game with 8 pairs of symbol.
- The player flips one card over to reveal its underlying symbol.
- The game ends once all cards have been correctly matched.
-
clicking on two cards, if they match, look for another pair of cards. If cards are not a pair, try again.
-
Keep matching up pairs until all cards are matched and faced up.
-
click on the restart button on the top right corner of the game.
-
If all cards matched then you well win Congratulations .
-
On the Alert window, you can hit 'play again!' to have another go at the game, or click on enough if you want to stop playing.
- Download the zip folder.
- Open
index.html
to view the game in your browser and enjoy .
[https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array]