Skip to content

amyyf/memory-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Building a web version of Concentration from scratch!

This is a web version of your typical memory card game, where the player clicks or taps cards to turn them over and reveal the image on the other side, with the goal of matching all pairs as quickly as possible.

Why Concentration?

This is the second project for my Front-End Nanodegree through Udacity, for which I was awarded a merit scholarship by Grow with Google. It's the first significant app I've built from scratch (yep, I chose to eschew the starter files!) combining my knowledge of HTML, CSS, and JavaScript.

Because I'm interested in architecture, I chose to have players match buildings from around the world (see image links below for a list of buildings).

How the Game Works

The cards for gameplay are built in the DOM. Each time the game is started or reset, the cards are rebuilt and randomized. Matches are determined by comparing CSS classes (pair-1, pair-2, etc.) whenever two cards have been clicked. The app tracks clicks and moves, times gameplay, and calculates a "rating" based on how many moves a player takes to find all matches.

Usage and Contribution Guidelines

The game has no dependencies. It does make use of Font Awesome and Google Fonts, which it accesses through stylesheet links in the document head rather than making you download them.

If you encounter an error while using, I would be so thrilled to be notified!!

Please submit an issue if you find one and don't want to fix it yourself. If you do want to fix an issue yourself, or if you'd like to update a feature, please create your pull request on a new branch rather than on the master branch so I can easily merge it in.

I am not looking to implement new features at this point, but perhaps in the future. Nothing is ever finished, right?

Image Credits

All photos sourced from Pexels under the Creative Commons Zero (CCO) license and edited by me.

Original Image Links

Other Sources of Help

A few pages I referenced while coding:

License

This is a student project, but I did spend a lot of hours on it! Please feel free to use, but please let me know if you do so.

About

Project #2 for Udacity Front-End Nanodegree

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published