Skip to content

lugof/unit-4-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

c5e3fb8 · Oct 21, 2018

History

4 Commits
Sep 16, 2018
Oct 21, 2018
Oct 19, 2018

Repository files navigation

unit-4-game

Game of crystals.

Instructions:

  • You will be given a random number at the start of the game
  • By clicking on a crystal you will add a specific amount of points to your total score.
  • The value of each crystal is hidden from you until you click on it.
  • You win the game by matching your total score to random number
  • Enjoy!

Objective:

  • Create a game that challenges the user to equal the given number by adding the value of the 4 gems provided. Each gem/crystal will have a random unknown value which will be added to the user number by each click.
  • User will have to make his own calculation in order to equal his number to the given number. Given number is also a random number provided.

Technical approach

  1. Create the backbone html
  2. Create provided random number and gems random numbers. Make sure they don't repeat between each others.
  3. Create buttons and show all random numbers on screen
  4. Create the functions to add values and dynamically show on screen on each click
  5. Function in case user wins.
  6. Restart the game using counters for each win/lose.

Link to Website: Gems Game.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published