Skip to content

sniemeyer1/Crystal-Collector-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crystal Collector Game

Created a dynamic crystals game with jQuery.

Goals of the project:

  • There will be four crystals displayed as buttons on the page.

  • The player will be shown a random number at the start of the game.

  • When the player clicks on a crystal, it will add a specific amount of points to the player's total score.

    • The game will hide this amount until the player clicks a crystal.
    • When the user clicks a crystal, the player's score counter will update.
  • The player wins if their total score matches the random number from the beginning of the game.

  • The player loses if their score goes above the random number.

  • The game restarts whenever the player wins or loses.

    • When the game begins again, the player should see a new random number. Also, all the crystals will have four new hidden values. Of course, the user's score (and score counter) will reset to zero.
  • The app should show the number of games the player wins and loses. The user should not have to refresh the page as a means to restart the game.

Play here: https://sniemeyer1.github.io/Crystal-Collector-Game/

Releases

No releases published

Packages

No packages published