Skip to content

Card matching game written for Udacity IPND Front-End Memory Game Project.

License

Notifications You must be signed in to change notification settings

eileenwong9305/Superhero-Matching-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Superhero-Matching-Game

Table of Contents

Project Background

This game is built as the project for Udacity Intro to Programming Nanodegree Program - Front-End Development. This project demonstrate mastery of HTML, CSS and Javascript. It is a complete browser-based card matching game. For more detailed description and instruction, please visit Udacity Classroom.

Project Content

This project contains following files:

  • game.html
  • game.css
  • game.js
  • images file: containing all superhero images for the cards
  • screenshot file: containing screenshot of the game
  • README.md: explanation of the game

Load the Game

Click to play here.

OR

Download the project zip file to your pc and unzip the file. Or clone the repo to your pc. Open game.html in browser. Your browser should launch the game.

How to Play

After loading the game, click on "Start" button when prompted. Timer will start running.

Start screen

The screen will show a game board consists of sixteen cards arranged in a grid. The deck is made up of eight different pairs of cards, each with different superhero image on one side. The cards are arranged randomly on the grid with the image face down. The star rating on top left reflects the player performance. The more number of moves made by player, the less the stars. The move counter displays the current number of moves made by player. Timer on the top right of the game board display time taken by player while playing. The pause button allows the player to pause the game. The restart button allows player to reset the game board, the timer, and the star rating.

Game board

The gameplay rules are very simple: flip over two hidden cards at a time to locate the ones that match. When card is clicked, it will be flipped open. If two opened cards match, the cards will stay flipped over with backgrounds turn to yellow.

Cards match

If the cards do not match, the background of cards appear red and cards will be flipped face down and remain hidden state.

Cards do not match

Once player complete the game, a modal appears to congratulate the player and ask if they want to play again. It also displays the star rating, number of moves and time taken by player to win the game. It also displays the best score made by player in his/her play history.

Winning modal

During the period of playing, player can pause the game. The timer is paused and a modal appears asking if player wants to continue the game or start a new game.

Pause modal

Bugs and Feature Requests

If there is a bug or feature request, please open an issue.

Resources Used

Superhero Images:

Screen Background Image:

Font:

Pause and Restart Icon:

Deck Gradient Background:

Timer:

Modal:

Shuffle Function:

Grid of Responsive Squares

Bootstrap

jQuery

Udacity Starter Code

About

Card matching game written for Udacity IPND Front-End Memory Game Project.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published