Skip to content

abidhassan01/NumberGuessingGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Number Guessing Game

A classic number guessing game implemented in both Python (console version) and Web (HTML/CSS/JavaScript) formats. Challenge yourself to guess the secret number between 1 and 100 with helpful feedback!

🎮 Game Features

  • Random number generation between 1-100
  • Interactive feedback system with color-coded hints:
    • 🔵 Blue for "too low"
    • 🟠 Orange for "too high"
    • 🟢 Green for correct guess
  • Attempt counter to track your progress
  • Input validation to ensure valid guesses
  • Responsive design with clean, modern UI

🚀 How to Play

  1. The game generates a random secret number between 1 and 100
  2. Enter your guess in the input field
  3. Receive feedback: "Too high", "Too low", or "Correct!"
  4. Keep guessing until you find the secret number
  5. Try to minimize your attempts for the best score!

📁 Project Structure

├── app.py          # Python console version
├── index.html      # Web interface structure
├── script.js       # Game logic and interactivity
└── style.css       # Styling and visual design

🖥️ Versions Available

Python Console Version (app.py)

  • Command-line interface
  • Simple text-based interaction
  • Perfect for terminal enthusiasts

Web Version (index.html + script.js + style.css)

  • Modern, responsive web interface
  • Visual feedback with colors
  • Click-to-play functionality
  • Elegant design with hover effects

🛠️ Technologies Used

  • Python - Console version logic
  • HTML5 - Web structure
  • CSS3 - Styling and animations
  • JavaScript - Web game logic and DOM manipulation

🔮 Future Enhancements

  • Difficulty levels (different number ranges)
  • High score tracking
  • Multiplayer mode
  • Sound effects
  • Hint system after certain attempts

Have fun guessing! Can you beat it in the fewest attempts? 🎉

About

A classic number guessing game implemented in both Python (console version) and Web (HTML/CSS/JavaScript) formats. Challenge yourself to guess the secret number between 1 and 100 with helpful feedback!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors