This document outlines a Python-based quiz game inspired by 'Kaun Banega Crorepati' (KBC), focusing on user interaction and logic building. The project includes features like multiple choice questions, lifelines, and score tracking, and aims to provide a user-friendly terminal interface. Future enhancements could involve adding a graphical user interface and database integration.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
36 views13 pages
KBC Game Using Python
This document outlines a Python-based quiz game inspired by 'Kaun Banega Crorepati' (KBC), focusing on user interaction and logic building. The project includes features like multiple choice questions, lifelines, and score tracking, and aims to provide a user-friendly terminal interface. Future enhancements could involve adding a graphical user interface and database integration.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13
KBC Game Using Python Language
• A Python-based Quiz Game Inspired by 'Kaun
Banega Crorepati' • Presented By: [Your Name] • Course/College: [Your Course & College] • Date: [Submission Date] Introduction • KBC (Kaun Banega Crorepati) is a quiz-based game show. • This project replicates the KBC game using the Python programming language. • Focuses on logic building, user interaction, and conditional programming. Project Objectives • Develop a simple quiz game in Python. • Implement lifelines similar to KBC (e.g., 50-50, audience poll). • Practice input/output, loops, functions, and data structures. • Provide a user-friendly interface in the terminal. Tools & Technologies Used • Programming Language: Python 3.x • IDE: VS Code / PyCharm / IDLE • Libraries Used: • - random – for lifeline randomness • - time – to add delay effects • - sys – for exiting the game gracefully Game Features • Multiple choice questions with four options. • Lifelines: 50-50, Audience Poll. • Score tracking. • Levels of increasing difficulty. How the Game Works • User selects an option from A/B/C/D. • Correct answer: moves to next question. • Incorrect answer: game ends. • Lifelines can be used only once. Code Structure • Main Sections: • - Question Bank (List of dictionaries) • - Display function • - Answer check function • - Lifeline logic • - Main game loop Sample Code Snippet • questions = [ • {"ques": "Capital of India?", • "options": ["A.Delhi", "B.Mumbai", "C.Kolkata", "D.Chennai"], • "answer": "A"} • ] • def ask_question(q): • print(q["ques"]) • for opt in q["options"]: Challenges Faced • Designing a dynamic question bank. • Avoiding code repetition. • Implementing lifeline logic. • Ensuring input validation. Output Screenshots • (*Add 2–3 terminal screenshots of your game running manually in the final version*) Conclusion • Successfully created a quiz-based game using core Python. • Learned real-world application of conditional logic and loops. • Could be enhanced with GUI or database integration. Future Scope • Add GUI using Tkinter or PyQt. • Use a database for question storage. • Add timer and background music. Thank You • Any Questions? • Contact: [Your Email or Roll Number]