A command-line game where players try to guess a randomly generated number between 1 and 100! This project demonstrates clean code, and user interaction.
✅ Random Number Generation (1-100) 🎲
✅ Interactive Command-Line Interface 💻
✅ Input Validation 🛡️
✅ Intelligent Feedback System 🔄
✅ Limited Attempts (5 Tries) ⏳
✅ Clear Win/Lose Conditions 🏆❌
Built using Java, this project incorporates:
- Object-Oriented Programming Principles 🏗️
- Random Number Generation (Java
Randomclass) 🎲 - User Input Handling (Scanner class) ⌨️
- Error Checking & Validation 🚦
- Clean Code Architecture 🔍
1️⃣ A random number between 1-100 is generated 🔢
2️⃣ Players have 5 attempts to guess correctly 🎯
3️⃣ After each valid guess, they receive hints:
"Pick a higher number"🔼"Pick a lower number"🔽"You win!"🏆
5️⃣ The game ends when the player guesses correctly or runs out of attempts ❌
Game.java: Core game logic ⚙️GameApplication.java: Runs the game 🎮- Encapsulated & Modular Design for maintainability 🛠️
- Language: Java ☕
- Compatible IDEs: IntelliJ, Eclipse, VS Code 💻
- No External Dependencies Required 🚀
- Clone the Repository 📂
git clone https://github.com/kellyjohart/HigherLowerGame.git