Generate a random integer between 1 and 100. Prompt the user to guess the number.
After completing this assignment, you should…
- Understand how to use while loops
- Understand boolean logic
After completing this assignment, you be able to effectively use
- Use some tool or technique
- A repo containing at least:
dist/main.js
dist/index.html
- No JSHint warnings or errors
Fork and then clone this repository. You will complete this assignment by modifying the main.js file within your copy of the code.
For this assignment you will create a number guessing game. Your program will randomly generate an integer (whole number) between 1 and 100. Using the game.ask command, you should ask the user to guess the randomly generate number. If their guess is too low, it should inform them that the guess was too low and prompt them to guess again. If their guess is too high it should inform them that their guess was too high, and prompt them to guess again. If they correctly guess the number it should inform them that they won.
Update your game so that when a user wins, it prompts them to either quit or play again. If they choose to play again, the game should start over with a new random number. If they choose to quit, it should show a goodbye message.
If you feel the urge, re-style the game by modifying the Sass.