Git Product home page Git Product logo

fend-project-02's Introduction

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.

fend-project-02's People

Contributors

ovlachi avatar richardkalehoff avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.