Giter Site home page Giter Site logo

card-game-challenge's Issues

Feature: Ability to restart the game

You should render a restart button to the screen and create a method for handling the restart (ie - flipping all the cards back to their starting positions)

The cards will flip back automatically if we turn their flipped value to false in the state.

bug fix: when flipping a non-matching pair

When flipping a non-matching pair the cards flip back before the second image is shown.

So this bug occurs when the images DO NOT match. I think simply adding a setTimeout and putting the logic inside it should work.

1000 milliseconds (1 second) on the setTimeout should be enough.

There should be 16 cards minimum

Instead of only 4 cards, increase the number to 16.
You will need to source images for the cards, and make sure they are rendered correctly

Feature: implement a "total number of turns"

Implement a "total number of turns" feature, which counts down for every mistake made.

If the total of turns hits zero, you should handle the game over scenario, and reset the cards.

Feature: Need to update the UX

We need some text which should say whether or not a match has been found - for a good user experience.

At the moment, if it's a match it simply logs to the console "its a match", change it to make some text show on the screen.

CSS needs fixing!

The design team have given us this design to work with. You should write the CSS to match it.
They've said the images can be whatever we like. But the cards should be central, and there should be a title.

cardgame-css

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.