Skip to content

kellyjohart/HigherLowerGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎲 Higher-Lower Number Guessing Game 🎯

📌 Overview

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.

✨ Features

Random Number Generation (1-100) 🎲
Interactive Command-Line Interface 💻
Input Validation 🛡️
Intelligent Feedback System 🔄
Limited Attempts (5 Tries)
Clear Win/Lose Conditions 🏆❌

🛠️ Technical Implementation

Built using Java, this project incorporates:

  • Object-Oriented Programming Principles 🏗️
  • Random Number Generation (Java Random class) 🎲
  • User Input Handling (Scanner class) ⌨️
  • Error Checking & Validation 🚦
  • Clean Code Architecture 🔍

🎮 Game Rules

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

📂 Code Structure

  • Game.java: Core game logic ⚙️
  • GameApplication.java: Runs the game 🎮
  • Encapsulated & Modular Design for maintainability 🛠️

🖥️ Development Environment

  • Language: Java ☕
  • Compatible IDEs: IntelliJ, Eclipse, VS Code 💻
  • No External Dependencies Required 🚀

▶️ Running the Application

  1. Clone the Repository 📂
    git clone https://github.com/kellyjohart/HigherLowerGame.git

About

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.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages