Skip to content

A game in which u will click unique emojis and gain score to beat your top score.

Notifications You must be signed in to change notification settings

Jiavuddin/Emoji-Game

Repository files navigation

In this assignment let's build a Emoji Game by applying the concepts we have learned till now.

Refer to image below:


emoji-game-output

Design Files

Project Set Up Instructions

  • Download dependencies by running npm install
  • Start up the app using npm start

Project Completion Instructions

Add Functionality

The app must have the following functionalities

  • The Score and Total Score for the current game should be 0 initially.

  • When an Emoji is clicked

    • If the clicked emoji is not the same as any of the previously clicked emojis then the Score should be increased by 1.

    • If all the emojis are clicked exactly once

      • The Game status along with Best score and Play Again button should be displayed as shown in the design file (won game).
      • The Best score should be equal to the Top Score
    • If the clicked emoji is the same as any of the previously clicked emojis

      • The Game status along with Current score and Play Again button should be displayed as shown in the design file (lose game).

      • If the score achieved in the current game is higher than the previous scores then the Top Score should be updated accordingly.

  • When the Play Again button is clicked, then we should be able to play the game again.

  • The Play Again button should reset the game and Score value but not the Top Score value.

  • The list of emojis is passed to the EmojiGame component as a prop emojisList in the form of an array object.

  • Each emoji object will have the following properties

    Key Data Type
    id Number
    emojiName String
    emojiUrl String
  • The value of the key id in the emoji object should be used as a key to the EmojiCard component.

  • The value of the key emojiName in the emoji object should be used as a alt text to the emoji image.

  • Your task is to complete the implementation of

    • src/components/EmojiGame/index.js
    • src/components/EmojiGame/index.css
    • src/components/NavBar/index.js
    • src/components/NavBar/index.css
    • src/components/EmojiCard/index.js
    • src/components/EmojiCard/index.css
    • src/components/WinOrLoseCard/index.js
    • src/components/WinOrLoseCard/index.css

Quick Tips

  • The cursor CSS property sets the type of mouse cursor, if any, to show when the mouse pointer is over an element. Use the CSS property cursor with a value pointer to indicate a link. Click this to know more.
  • An outline is a line that is drawn around an element, outside the border. The outline CSS shorthand property sets all the outline properties. Use the CSS property outline with value none to hide all the outline properties. Click this to know more.

Resources

Images

Colors

Hex: #6a59ff
Hex: #ffffff
Hex: #3d3d3d

Background Colors

Hex: #9796f0
Hex: #fbc7d4
Hex: #ffffff33
Hex: #ffce27

Border Colors

Hex: #ffffff30

Font-families

  • Roboto

Things to Keep in Mind

  • All components you implement should go in the src/components directory.
  • Don't change the component folder names as those are the files being imported into the tests.
  • Do not remove the pre-filled code
  • Want to quickly review some of the concepts you’ve been learning? Take a look at the Cheat Sheets.

About

A game in which u will click unique emojis and gain score to beat your top score.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published