Click Here First!
X

The purpose of this game is to show you my back-end knowledge. This game functions with jQuery and Javascript. Those crystals you see below, I had to set all of those to random numbers between 1 and 12 using a built in Javascript function. Then I added Event Listeners to the crystals so that everytime you click them, they add their value to your scorebox. I then added a random number generator to your Random Number box. Then a reset function so your random number and crystal values restart every game. BUT your wins and losses are still tracked and accumulated. So there's some pretty intricate stuff happening under the hood...

Crystal Crush

How to Play...

  • You will be given a random number at the start of the game, "Random Number"
  • The 4 crystals are in order below:
  • Atacamite
  • Ruby
  • Amber
  • Moldavite
  • By clicking on the crystal you'll be adding random points to your score
  • You win the game by matching your score to the random number
  • You lose if your score goes over the random number
  • The value of each crystal is hidden until you click on it
  • The crystal values reset after each game
  • Random Number:

    Wins:
    Losses:

    Score: