Skip to content

msaadraj/Word-Mastermind-Java-Console-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Hi 👋, I'm Muhammad Saad

A passionate Java developer and cybersecurity enthusiast from Pakistan

msaadraj

msaadraj

muhammad saad

  • 🔭 I’m currently working on Gexton Education

  • 🌱 I’m currently learning DSA, Networking & Digital Security

  • 👯 I’m looking to collaborate on Java Projects, Security Tools

  • 💬 Ask me about Java, Cybersecurity, Networking

  • 📫 How to reach me shaheeri8330@gmail.com

  • ⚡ Fun fact I just bought Books for showcase, not for reading

Java Word-MasterMind

The Java Word-MasterMind is a console-based word-guessing game that combines logical thinking and vocabulary skills. Inspired by the classic Mastermind concept, this game challenges players to guess a hidden word by receiving feedback on each guess, based on character correctness and position.

🔹 Game Features:

🔤 Three Difficulty Levels:

  • Easy (4-letter words)
  • Medium (5-letter words)
  • Hard (6-letter words)

🗂️ Categories & Hints:

Words are grouped by category, with hints provided to guide the player.

💡 Feedback Mechanism:

For every character in a guess:

  • ✔️ Correct character in the correct position
  • 🔄 Correct character in the wrong position
  • ❌ Incorrect character not in the word

🧮 Scoring System:

Points awarded based on word length, attempts taken, and accuracy.

🕹️ Replayability:

After each round, the player can choose to play again with different difficulty settings.

📁 Tech Stack:

  • Language: Java
  • Paradigm: Object-Oriented Programming (OOP)
  • Core Concepts Used:
    • Encapsulation
    • Inheritance
    • Polymorphism
    • File Handling (for score saving)
    • Collections (for word storage & logic)

🚀 Project Purpose:

This project was built to strengthen OOP design, practice file handling, and create an engaging, logic-based Java game experience. It also showcases modular coding and interactive command-line game design.

🛠️ Installation Requirements:

  • Java JDK 8 or above installed
  • Any text editor or IDE (e.g., IntelliJ, VS Code, Eclipse)
  • Basic terminal/command-line usage

💻 Usage Instructions:

To compile and run the game from your terminal:


javac Main.java
java Main
  

📸 Screenshots / Demo:

Below is a preview of the game in action:

Game Screenshot

Connect with me:

muhammad saad muhammad saad muhammad saad cipherr.code msaad_raj

Languages and Tools:

css3 git html5 illustrator java javascript linux mysql oracle photoshop

msaadraj

 msaadraj

msaadraj

About

A Java console-based word guessing game inspired by Mastermind. Features difficulty levels, hints, scoring, high score saving, and a clean modular design using OOP and file handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages