https://github.com/nrcool/browser-window
https://github.com/nrcool/browser-window
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/nrcool/browser-window
- Owner: nrcool
- Created: 2021-03-15T10:31:15.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-03-15T13:53:23.000Z (over 5 years ago)
- Last Synced: 2025-05-07T23:02:31.407Z (about 1 year ago)
- Language: HTML
- Size: 44.9 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Guessing Game
## Create a guessing game for players.
* Randomize a number between 1-10. Do not show the player.
* Make the player guess the number in a prompt.

* If the player guesses the correct number, print out whether the player was successful and in how many attempts (print in the console).

* If the player is incorrect, change the text in the prompt to inform the player, e.g. "Nope, sorry! Try again!

* If the player fails to guess the number after three attempts, print out that the player was unsuccessful AND what the number was. e.g. "Sorry, you failed to guess the number in three attempts. The number was 0!"

**See the images for reference**