Giter Site home page Giter Site logo

match-game's Introduction

In this project, I've built a image Match Game by applying react concepts Components, Component Life Cycle methods Constructor, render, ComponentDidMount and shcedulers to a set timer.

Design Files on Different Devices

Click to view

Functionalities Added

Clcik to view

The app has the following functionalities

  • Initially,

    • Score is 0 and timeer is 60 sec
    • The Fruits tab is the active tab and the thumbnails with FRUIT as their category will be displayed
  • The timer will start running backwards from the 60 sec

  • When a tab is clicked, then the thumbnails in the corresponding category will be displayed

  • When a thumbnail is clicked, if that is matched with the image to be matched,

    • Score is incremented by one
    • The new image to be matched will be generated randomly among the value of the key imageUrl from imagesList provided
  • When a thumbnail is clicked, if it is not matched with the image to be matched,

    • The game will end, and the total score view will be displayed
    • When PLAY AGAIN button is clicked, then we will be able to play the game again
      • The score and time values will be reset to 0 and 60 sec respectively
      • The image to be matched will reset to the value of the key imageUrl from the first object in imagesList provided
      • The active tab will reset to Fruits, and the thumbnails with FRUIT as their category will be displayed
  • When the timer reaches 0 sec, then the game will end, and the total score view will be displayed

  • The App is provided with tabsList. It consists of a list of tabItem objects with the following properties in each tabItem object

    Key Data Type
    tabId String
    displayText String
  • The App is provided with imagesList. It consists of a list of imageItem objects with the following properties in each imageItem object

    Key Data Type
    id String
    imageUrl String
    thumbnailUrl String
    category String

Resources

Image URLs
Colors
Hex: #2c0e3a
Hex: #ffffff
Hex: #fec653
Hex: #cf60c8
Font-families
  • Roboto

match-game's People

Contributors

raghavrover 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.