Skip to content

A complete browser-based card matching game (also known as Concentration). But this isn’t just any memory game! It’s a shnazzy, well-designed, feature-packed memory game developed with Vanilla JS.

Notifications You must be signed in to change notification settings

oanaporan/Memory_Game

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FEND Udacity - Memory Game Project

What is the Memory Game?

A single page web app with the classic memory game.

Challenge

Match all cards in less time with less moves.

Preview

snippet

Installation

  1. Download the img, css, js folders and the index.html file.
  2. Open the index.html file in the browser.

Development Strategy:

  • Memory Game Logic The game randomly shuffles the cards. A user wins once all cards have successfully been matched.

  • Congratulations Popup When a user wins the game, a modal appears to congratulate the player and ask if they want to play again.

  • 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, it displays 3 stars. After 16 moves, it changes to a lower star rating. After 22 moves, changes to a 1 star rating.

  • 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.

  • Flip a card Onclick function reveals a card, adds it to an array of open cards them checks if matck.

Code

  • Manipulating the DOM with Vanilla JS, altered the HTML and styled the game.
  • Font-awesome and Google fonts used: 'Nunito', sans-serif.

About

A complete browser-based card matching game (also known as Concentration). But this isn’t just any memory game! It’s a shnazzy, well-designed, feature-packed memory game developed with Vanilla JS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.9%
  • CSS 30.8%
  • HTML 14.3%