Skip to content

This game uses JavaScript logic to generate a random number that users must guess. Users click on crystals to add up to the random number, but the crystals value is not known to the user until they click.

Notifications You must be signed in to change notification settings

Lmcdono1/unit-4-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

unit-4-game

This game encompasses concepts of HTML, CSS, Javascript, and JQuery. The objective is for the player to match their score with a random number. The player must click on crystals (without knowing their value until they are clicked) in order to match the number.

This game allows showcases front-end frameworks with building an attractive game and also uses JS and JQuery to:

  1. Develop a random number for players to guess
  2. Develop 4 random numbers that are assigned to the crystals, only revealed when clicked
  3. Alert the player if they have won or lost depending on if their number is equal to the random number (won) or greater than the random number (lost).
  4. Logs the score and resarts the game

To start this game, I pseudo coded the JS/JQuery portion to determine what functions were needed for each of the steps above.

About

This game uses JavaScript logic to generate a random number that users must guess. Users click on crystals to add up to the random number, but the crystals value is not known to the user until they click.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published