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!
"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..."
- 🧠 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
✅ Java 17 or higher required
✅ JavaFX SDK must be set up (only if you're compiling from source)
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.
Clone the repo and run it directly in IntelliJ or any IDE with JavaFX configured.
Gameplay Screen
Scores Screen
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
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.
Najam Ul Hassan Kazmi
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! 🎉