Question: The task is to implement a classic memory game. You are free to solve this task with Vue. The board is n-by-n, (4x4) The deck

The task is to implement a classic memory game. You are free to solve this task with Vue.

The board is n-by-n, (4x4)

The deck contains unique pairs of cards (for a board of n*n, we need n*n/2 pairs of cards).

Rules of the game:

Cards are laid out in a grid face down.

Two players take turns.

Player flips a pair of cards over. If the cards match, they disappear, the player scores one point, and gets a bonus turn.

The game is over when all matches are found.

Card grid should be randomized for each game.

Use some animation or effect for flipping the cards.

Count and show on the screen the total number of flips and each players score

Show in the end which player won.

Allow to start a new game after finishing, without refreshing the page.

Allow the player to see both cards before they are flipped back or removed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!