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
- Host: GitHub
- URL: https://github.com/alex-cultrera/guessing-game...higher-or-lower
- Owner: Alex-Cultrera
- Created: 2024-01-07T16:25:31.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-08-14T17:47:45.000Z (10 months ago)
- Last Synced: 2025-05-13T20:37:12.705Z (22 days ago)
- Topics: if-statements, java, random-number-generators, scanner, while-loop
- Language: Java
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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).