Skip to content

ovlachi/FEND-Project-02

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Memory Game Project

Introduction

This is my second project of Udacity's Front-End Nanodegree program. The Memory Game is a complete browser-based card matching game (also known as Concentration) that I have built using HTML, CSS and JavaScript and manipulating the DOM.

This is the link of the live game:

Memory Game

The Game

The game board is made up of 16 cards appearing as a grid. Each of the cards will feature one of eight different symbols and cards are meant to be matched according to the symbols. The game begins with all cards presented symbol-side face down. The player flips two cards over to reveal their underlying symbols. No more than two cards can be turned over at a time. If the two cards match they are bouncing once and stay opened. Their colour will be changed to green. If the cards don't match they will turn back face down. The game ends once all cards have been correctly matched.

Technical

Memory Game Logic:

The game randomly shuffles the cards. A user wins once all cards have successfully been coorectly matched.

Restart Button:

A restart button allows the player to reset the game board, the timer, and the star rating.

Star Rating:

The game displays a star rating (from 1 to at least 3) that reflects the player's performance. At the beginning of a game, displays 3 stars. After 12 moves, it change to two stars and after 24 moves changes down to one star.

Timer:

When the player starts a game, a displayed timer starts. Once the player wins the game, the timer stops.

Move Counter:

Game displays the current number of moves a user has made.

Congratulations Popup:

When a user wins the game, a modal appears to congratulate the player and ask if they want to play again or cancel the modal window. It should also tell the user how much time it took to win the game, how many moves and what the star rating was. The Play again button resets the game and closes the modal window.

Design

Styling:

Application uses CSS to style components for the game. A bounce effect was included when two cards are successfully matched (CSS animation)

Usability:

All application components are usable across modern desktop, tablet, and phone browsers.

Documentation

README:

A README file is included detailing the game and all dependencies.

Comments:

Comments are present and effectively explain longer code procedure when necessary.

Code Quality:

Code is formatted with consistent, logical, and easy-to-read formatting as described in the Udacity JavaScript Style Guide.

Contributing

This repository is the starter code for all Udacity students. Therefore, we most likely will not accept pull requests.

For details, check out CONTRIBUTING.md.

About

My second project in the RMIT/Udacity's Front-End Nanodegree program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published