Here is a suitable README file content to upload in your GitHub repository for the Java KBC Quiz Game project you shared:
This is a simple console-based quiz game inspired by the popular Indian TV show Kaun Banega Crorepati (KBC). The game is implemented in Java and simulates a 15-question multiple-choice quiz with increasing prize money levels, similar to the real show.
- 15 multiple-choice questions with 4 options each (A, B, C, D)
- Progressive prize money levels, culminating in ₹1 Crore for all correct answers
- Immediate feedback on answers (correct/wrong)
- Game ends on the first wrong answer, with milestone prize protection
- Simple and interactive console input/output interface
- Ensure you have Java installed (JDK 8 or above recommended).
- Download or clone the repository.
- Compile the code using the command:
javac QuizGame.java
- Run the program using:
java QuizGame
- Follow the prompts to answer the questions.
QuizGame.java
- Main class containing the quiz logic and question data.Question
inner class - Defines the question, options, and the correct answer.
- Questions and answers are hardcoded in the
createQuestions()
method. - You can modify or extend the list of questions as per your needs.
- For a more advanced version, questions can be loaded from an external JSON file or database.
Inspired by the Kaun Banega Crorepati TV show format. The project is a practice exercise aimed at beginners learning Java programming and object-oriented concepts.