Skip to content

DecentCoders/KBC_GAme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 

Repository files navigation

KBC Game | Python CLI Quiz Project

Python GitHub Repo Last Commit Top Language License: MIT

A fully interactive, command-line based implementation of the iconic Kaun Banega Crorepati (KBC) quiz game, built entirely in Python. This single-file project is a beginner-friendly hands-on practice project, designed to replicate the core gameplay of India's beloved quiz show (the official Indian adaptation of Who Wants to Be a Millionaire?). Created and maintained by DecentCoders (Hridoy Hawladar) as part of Python programming practice.

✨ Core Game Features

This implementation brings the classic KBC experience to your terminal, with these key features:

  • Interactive multiple-choice quiz questions modeled after the official KBC format
  • Progressive prize money tiers that increase with each correct answer
  • Intuitive command-line interface (CLI) with clear prompts and user guidance
  • No external dependencies or installations required beyond Python itself
  • Single-file implementation for easy access, editing, and learning
  • Core game logic for answer validation, win/lose conditions, and user input handling

🛠️ Tech Stack

This project uses only native Python with no external libraries, making it perfect for beginners learning the language:

  • Pure standard Python 3 (compatible with Python 3.6 and above)
  • Only uses Python's built-in standard library
  • No external packages, frameworks, or extra installations required

📁 Project Structure

This is a minimal, single-file project for simplicity and ease of use:

KBC_GAme/
├── main.py       # Complete source code for the entire KBC game (all logic, questions, and UI)
└── README.md     # Project documentation (this file)

🚀 Getting Started

Running the game is extremely simple, with no complex setup required.

Prerequisites

You only need Python 3.6 or higher installed on your local machine. You can download Python from python.org if you don't have it already.

Run the Game

  1. Clone or download this repository to your local machine:
    git clone https://github.com/DecentCoders/KBC_GAme.git
    cd KBC_GAme
  2. Run the main game file with Python:
    python3 main.py
  3. The game will launch directly in your terminal, and you can start playing immediately!

🎮 How to Play

The game follows the classic KBC format:

  1. When the game starts, you'll be presented with a multiple-choice question, along with 4 answer options (numbered 1 to 4)
  2. Enter the number corresponding to your chosen answer and press Enter
  3. If your answer is correct, you'll advance to the next question and unlock a higher prize tier
  4. If your answer is incorrect, the game ends immediately
  5. The goal is to answer as many questions correctly as possible to win the maximum prize!

📚 What You'll Learn From This Project

This is a perfect practice project for Python beginners, covering core programming concepts including:

  • Fundamental Python syntax: variables, loops, conditionals, and functions
  • User input handling and validation in a CLI environment
  • Data structure usage for storing quiz questions, options, and prize tiers
  • Control flow for game state management (win/lose conditions, question progression)
  • Basic CLI game design and user experience principles
  • Clean code organization in a single-file Python project

🔮 Future Improvements- ( Try doing these )

This is a foundational project with lots of room to expand as you learn more Python. Suggested enhancements include:

  • Classic KBC lifelines: 50-50, Audience Poll, and Phone-A-Friend
  • A larger, categorized question bank with varying difficulty levels
  • Saved high score system that persists between game sessions
  • Locked prize tiers (safe points) to protect your winnings
  • Game over screen with a built-in restart option
  • Colorful terminal UI for a more immersive experience
  • Per-question timers to add tension and challenge

🤝 Contributing

This is a beginner-focused learning project, and contributions are more than welcome! Whether you're adding new questions, implementing lifelines, fixing bugs, or improving the code for better readability, feel free to get involved:

  1. Fork the repository
  2. Create a feature branch for your changes (git checkout -b feature/new-kbc-feature)
  3. Commit your changes with a clear, descriptive message (git commit -m 'Add 50-50 lifeline functionality')
  4. Push to your branch (git push origin feature/new-kbc-feature)
  5. Open a Pull Request to this repository

📄 License

This project is open source and available under the MIT License. You're free to use, modify, and distribute the code for your own learning or personal projects.

Acknowledgements

This project is inspired by the iconic Kaun Banega Crorepati Indian television quiz show, the official adaptation of Who Wants to Be a Millionaire?. Built as a hands-on way to practice and master core Python programming fundamentals.

About

This project is inspired by the iconic Kaun Banega Crorepati Indian television quiz show, the official adaptation of Who Wants to Be a Millionaire?. Built as a hands-on way to practice and master core Python programming fundamentals.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages