Git Product home page Git Product logo

gwg-fend-memory-game's Introduction

Memory Game Project

Table of Contents

Instructions

Welcome to the Memory Game! This game is also known as Concentration. This game was developed for the Grow With Google Udacity Front-End Developer (FEND) Nanodegree.

To get started, open index.html and the game board should appear in your internet browser. There are 16 black squares, representing the 16 cards containing 8 pairs (two of a kind) in the game. There is a refresh button at the top right of the cards. At the top left of the cards, there is a player statistics panel featuring a timer, a star rating, and move counter. Single-clicking the refresh button will turn all cards over (to black), shuffle the cards, and reset all data in the statistics panel.

Start the game by clicking (single-click) on any card. The timer will begin when the first card is clicked. When clicked, the card will flip over to reveal an image. Click on a different card to reveal the second hidden image. The move counter will increment each time two different cards (any pair - matching or not matching) are clicked.

If the images of the two cards match, then the cards remain face up. If the two cards do not match, then those two cards automatically flip back down (to black) after approximately 1 second.

The game ends when all 16 cards - 8 pairs - are matched. A modal will appear and will highlight the player's final game statistics. A message in the modal will ask the user if they want to play again. The user can choose one of two buttons in the modal to either end play or play another game.

Requirements

To play the game, an internet browser and a mechanism to click (mouse, trackpad, touchscreen) are required.

Contributing

This repository contains a combination of starter code (HTML, CSS, and JavaScript) from Udacity and code written by Minette J. Roberson. For development details and review, the following files can be opened with a text editor: index.html, app.css, and app.js. Because this Memory Game is the product of a GWG Udacity FEND Project, pull requests will most likely not be accepted until further notice.

For details, check out CONTRIBUTING.md.

gwg-fend-memory-game's People

Contributors

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