Git Product home page Git Product logo

memory-game's Introduction

Memory Game For this assignment, you’ll be building a memory game in the browser using HTML, CSS, and JavaScript. Your goal is to build a card-based memory game.

Players will be shown a collection of cards, face down, and can click on a card to reveal what’s underneath. After clicking on two cards, the game should check to see whether they match. If they do, they will remain facing up. If not, the cards should remain displayed to the player for a couple of seconds, and then flip back down. The goal of the game is to match up pairs of cards in as few clicks as possible.

Be sure to style your game! It should be functional but also look nice.

Requirements

  • User should be able to start a new game.

  • Clicking a card should reveal what’s underneath it.

  • The game should keep track and display the number of times cards have been turned over.

  • Users should only be able to see at most two cards at a time.

  • Clicking on two matching cards should be a “match” — those cards should stay face up. (Make sure this works only if you click on two different cards — clicking the same card twice shouldn’t count as a match!)

  • When clicking two cards that are not a match, they should stay turned over for at least 1 second before they flip over again

    (Bonus) Store the lowest-scoring game in local storage, so that players can see a record of the best game played.

memory-game's People

Contributors

vanvemden avatar

Watchers

 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.