Skip to content

This is the Game, Who Wants to be a Millionaire in Python Language. Play this simply by copying the code and submitting it in your environment. HAVE FUN!

Notifications You must be signed in to change notification settings

Najam-Hassan-Kazmi/Game-Project-Who-Wants-To-Be-A-Millionaire

Repository files navigation

💰 Who Wants To Be A Millionaire – JavaFX Edition

Game Banner

A desktop-based quiz game built in JavaFX, inspired by the iconic Who Wants to Be a Millionaire.
Test your knowledge, take lifelines, and try your luck at reaching the million!


🧩 About the Game

"Who Wants To Be A Millionaire – JavaFX Edition" is a fun and challenging trivia game designed for the Programming II course project.
It showcases interactive UI, file handling, Java OOP, and basic game mechanics in a clean and enjoyable format.

🎙️ "Najam was heard whispering about a young lady who made big headlines and even bigger impacts on education..."


🕹️ Gameplay Highlights

  • 🧠 3 random questions from 3 different levels (9 total)
  • 🔍 Lifelines: 50/50 and Expert Opinion
  • 📜 Personalized name input and score tracking
  • 📝 Scoreboard saved to a local Records.txt file
  • 🎨 Smooth layout built with JavaFX GridPane, VBox, and HBox

🚀 How to Play

Java 17 or higher required
JavaFX SDK must be set up (only if you're compiling from source)

🧱 Option 1: Play Instantly (Recommended)

Download the precompiled .jar file:
🔗 Download Game (JAR)

Then run it with:

java --module-path "path/to/javafx-sdk/lib" --add-modules javafx.controls,javafx.fxml -jar who-wants-to-be-a-millionaire.jar

💡 If you get a JavaFX error, make sure JavaFX is installed and referenced in your command:
Download from https://gluonhq.com/products/javafx/
Unzip it and use the path like --module-path "C:/path/to/javafx-sdk/lib" in the run command.

🛠️ Option 2: Compile from source

Clone the repo and run it directly in IntelliJ or any IDE with JavaFX configured.


🖼️ Game in Action

Gameplay Screen

Gameplay Screen


Scores Screen

Scores Screen


💡 Key Learnings

This project helped me improve in:

  • 🔸 Java OOP & event handling
  • 🔸 JavaFX layout management
  • 🔸 File I/O in Java (read/write scoreboard)
  • 🔸 Building and structuring GUI-based applications
  • 🔸 Writing clean, modular code

🎓 Academic Context

This game was developed as a Programming II course project at the University of Eastern Finland.
It was designed with learning objectives focused on GUI design, logic handling, and clean architecture.


🙋‍♂️ Author

Najam Ul Hassan Kazmi

🌐 Socials:

LinkedIn email


🌟 Bonus

If you're a Potterhead, there's a secret Gryffindor reference hidden in the success messages 🦁
Feel free to fork, star ⭐, or suggest improvements!


Happy Quizzing! 🎉

About

This is the Game, Who Wants to be a Millionaire in Python Language. Play this simply by copying the code and submitting it in your environment. HAVE FUN!

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages