bcko / Ud-FE-MemoryGame-JS

Udacity Front-End Web Developer Nanodegree Project : Memory Game in Javascript

Home Page:https://bcko.github.io/Ud-FE-MemoryGame-JS/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Udacity-Front-End-Nanodegree-Memory-Game

Udacity Front-End Developer Nanodegree Project : Memory Game

Project Overview

What Will I Build?

The Memory Game Project is all about demonstrating your mastery of HTML, CSS, and JavaScript. You’ll build 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!

The styling of the game is up to you, but here's what we came up with:

Matching Game

How The Game Works

The game board consists of sixteen "cards" arranged in a grid. The deck is made up of eight different pairs of cards, each with different symbols on one side. The cards are arranged randomly on the grid with the symbol face down. The gameplay rules are very simple: flip over two hidden cards at a time to locate the ones that match!

Each turn:

  • The player flips one card over to reveal its underlying symbol.
  • The player then turns over a second card, trying to find the corresponding card with the same symbol.
  • If the cards match, both cards stay flipped over.
  • If the cards do not match, both cards are flipped face down.

The game ends once all cards have been correctly matched.

Game Functionality

The real-life game, players flip over cards to locate the pairs that match The goal is to recreate this effect in your project. There are a couple of interactions that you'll need to handle:

  • Flipping cards
  • What happens when cards match
  • What happens when cards do not match
  • When the game finishes

Below are some examples of how we implemented these interactions.

A Correct Guess

A Correct Guess Video

An Incorrect Guess

An Incorrect Guess Video

Winning The Game

Winning the Game Video

Interactivity Guideline

Keep in mind that the specific functionality demonstrated here (e.g. a card performs a horizontal flip when clicked) is an example. You do not need to have this exact functionality.

What Will I Learn?

The memory game presents the first opportunity to fully combine your skills in HTML, CSS, and JavaScript into a large project. Aside from solidifying your skills with these three technologies, you'll discover how best to combine them in a complex application.

The following are just some of the questions that you'll experience along the way:

  • What's the ideal workflow?
  • How many files do I need?
  • Do I modify the HTML first or the CSS?
  • How many JavaScript functions do I need?
  • Should my function be this many lines of code?

There's no one right answer to each question. While working on this project, communicating with your mentor, and getting feedback from the project reviewer you'll develop answers to these questions.

Instructions

Get The Starter Code

If you'd like to start from scratch without any files, you are encouraged to do so! You learn the most by developing on your own! But, it can be a bit challenging having to start from scratch, so we do provide a starter project to use.

You can download the starter code through either:

This starter code has a static, non-interactive version of the project so you can get a jump on the developing.

Project Rubric

Your project will be evaluated by a Udacity code reviewer according to the Memory Game project rubric.

Version Control

We recommend using Git from the very beginning. Make sure to commit often and to use well-formatted commit messages that conform to our Git Style Guide.

Development Strategy

It's very important that you plan your project before you start writing any code. Break your project down into small pieces of work and plan out your approach to each one. It's much easier to debug and fix an issue if you've only made a small change. It becomes much harder if you wait longer to test your code. You don't build a house all at once, but brick by brick.

  • Start by building a very simple grid of cards.
    • Don't worry about styling, just get something clickable on the page.
    • Figure out the HTML needed to represent a card. Remember, you have to represent two sides of the card. Are you going to have two separate elements stacked on top of each other?
  • Add the functionality to handle clicks.
    • This should reveal the hidden side of each card.
  • Work on the matching logic. How does your game "know" if a player guesses correctly or incorrectly?
  • Work on the winning condition. How does your game “know” if a player has won?
  • We recommend saving styling until the very end. Allow your game logic and functionality to dictate the styling.

Udacity Style Guides

You should write your code and markup to meet the specifications provided in these style guides:

Project Submission

How will this project be evaluated?

Your project will be evaluated by a Udacity code reviewer according to the Memory Game project rubric. Be sure to review it thoroughly before you submit. All criteria must "meet specifications" in order to pass.

Submission Instructions

  1. Before submitting, make sure your code follows our style guidelines:
  2. CSS Style Guide
  3. HTML Style Guide
  4. JavaScript Style Guide
  5. Git Style Guide
  6. Create a new repository on GitHub and push your code up to it, making sure to push your master branch.
  7. Connect your GitHub account and select your Memory Game project's repository.
  8. If you are having any problems submitting your project or wish to check on the status of your submission, please email us at fend-support@udacity.com or visit us in the discussion forums.

About

Udacity Front-End Web Developer Nanodegree Project : Memory Game in Javascript

https://bcko.github.io/Ud-FE-MemoryGame-JS/


Languages

Language:JavaScript 72.1%Language:HTML 15.2%Language:CSS 12.7%