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

https://github.com/alex-cultrera/guessing-game...higher-or-lower

Java game application where the player gets 5 chances to guess a randomly generated number between 1 and 100
https://github.com/alex-cultrera/guessing-game...higher-or-lower

if-statements java random-number-generators scanner while-loop

Last synced: 22 days ago
JSON representation

Java game application where the player gets 5 chances to guess a randomly generated number between 1 and 100

Awesome Lists containing this project

README

        

# Guessing Game: Higher or Lower

Project where I used Java to create a game application where the player gets 5 chances to guess a randomly generated number between 1 and 100.

The player is prompted to pick a number from 1 to 100. If the user enters a number outside of that range, then an error message displays giving the user feedback that their pick was invalid and allows them to pick again. An invalid pick does not affect the number of guesses the player has remaining.

If the user enters a valid pick, they are then prompted to pick either a higher or lower number (depending on if they chose a number higher or lower than the randomly generated number).