An open API service indexing awesome lists of open source software.

https://github.com/nrcool/browser-window


https://github.com/nrcool/browser-window

Last synced: 4 months ago
JSON representation

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.
![alt text](./images/start-game.png "Starting Game")
* If the player guesses the correct number, print out whether the player was successful and in how many attempts (print in the console).
![alt text](./images/game-win.png "Won Game")
* If the player is incorrect, change the text in the prompt to inform the player, e.g. "Nope, sorry! Try again!
![alt text](./images/wrong-answer.png "Wrong Answer")
* 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!"
![alt text](./images/game-lost.png "Lost Game")

**See the images for reference**