Third project for Udacity's FEND nanodegree program.
The game board consists of sixteen "cards" arranged in a grid. The deck is made up of eight different pairs of cards, each with different symbols on one side. The cards are arranged randomly on the grid with the symbol face down.The gameplay rules are very simple: flip over two hidden cards at a time to locate the ones that match!
The timer starts counting with the players first move,and stops when the player finds all the matched pairs.At the beginning of a game,the star-rating displays 3 stars. After 15 moves, it changes to a 2 star rating. After 25 moves,it changes to 1 star rating.
When a user wins the game, a modal appears to congratulate the player, with information about total time,moves and rating. The modal also has a New Game button.
The game has a reset button if the player wants to reset game, which re-shuffles the cards and clears moves and timer.