Giter Club home page Giter Club logo

brain-refresh's Introduction

Brain refresh

The classic flip the cards and remember where all the matching pairs are, game!

When you click a card and you have exposed a matching card, the pair will stay visible. If not, it will flip back again. The scoring game tracks the number of clicks. You start off with blank cards. At any point, you can restart the game and it will refresh the whole grid. At the end of the game you will be presented with a score.

How to Load the game

To play the game just download(clone) the file unto your desktop. Unzip it and double click on the index.html to open it.

How to Play the Game

The game board consists of sixteen cards arranged in a grid. The card deck has eight matching pairs of cards, each one has random symbols on one side.

  • Flip the card to reveal the other side.
  • Then flip another card to see if you can find a matching card.
  • When the cards match both cards will stay visible.
  • Then if the cards don't match, both cards are flipped back and becomes hidden.
  • When all cards have been matched the game is complete.

Scoring

  • After Infinite moves you don't lose the third thumb
  • After 16 moves you lose the second thumb
  • After 14 moves you lose the first thumb

Features

  • A timer displays elapsed time and final time is displayed on the winning screen
  • At the start you get three thumbs, as you take more moves to complete the game your thumbs diminish
  • At the end of the game a popup appears with thumbs left, time taken and a count of your total moves
  • Ability to restart the game

Resources

Array shuffle http://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array

Card Effects https://daneden.github.io/animate.css/

Timer https://www.w3schools.com/js/tryit.asp?filename=tryjs_timing_stop

Popup https://sweetalert.js.org/

brain-refresh's People

Contributors

gen-ass avatar

Watchers

James Cloos 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.