Skip to content

This Python script replicates the "Kaun Banega Crorepati" game, presenting users with multiple-choice questions and monetary rewards. Players can choose to answer or quit at any point, accumulating winnings based on correct answers. The game concludes with a display of the player's total earnings.

Notifications You must be signed in to change notification settings

jaiswalchitransh/Kaun-Banega-Crorepati-Game-in-Python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

Kaun Banega Crorepati Game in Python

Table of Contents

Project Overview

This Python script simulates the popular game 'Kaun Banega Crorepati' where players answer a series of multiple-choice questions to earn cash prizes. Players have the option to quit the game at any point and keep the accumulated winnings. Each question is associated with a specific amount of money, representing the potential prize for a correct answer. The script begins by welcoming the player with an introductory message outlining the game rules and expectations. It then sequentially presents each question along with the answer options (numbered 1 to 4). Players input their answer choice, with the option to quit the game by entering '0'.

The game evaluates the correctness of the answers:

  • If the answer is correct, the player earns the corresponding prize money. There are predefined milestones (every 5th, 10th, and 15th correct answer) where the prize amount increases.
  • If the answer is incorrect, the game ends, and the accumulated winnings up to that point are displayed.

The script concludes by thanking the player for participating in the 'Kaun Banega Crorepati' game.

Installation

This project requires Python 3.12.1 or later. To set up the project:

  1. Ensure Python 3.12.1 or a later version is installed on your system. You can download Python from python.org.

  2. Clone or download the repository to your local machine.

      git clone https://github.com/jaiswalchitransh/Kaun-Banega-Crorepati-Game-in-Python.git
    
  3. Open the project in your preferred Python environment (e.g., IDE or terminal).

  4. Run the script (game.py) and observe the output.

Usage

Run the script:

     python game.py

Follow the on-screen instructions to answer questions and accumulate winnings. Enter '0' to quit the game and display your final winnings.

Features

  • Interactive Gameplay: Players engage in a quiz-like experience similar to the famous TV show.
  • Progressive Winnings: Prize money increases with each correct answer and reaches predefined milestones.
  • User-Friendly Interface: Clear prompts and instructions guide the player through the game.

Contribution

I, Chitransh Jaiswal developed this Project Individually. I was responsible for all aspects of the project, including design, development, testing, and documentation. Contributions to improve the efficiency, readability, or functionality of the code are welcome. To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/your-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add some feature').
  5. Push to the branch (git push origin feature/your-feature).
  6. Create a new Pull Request.

Please ensure your contributions adhere to the coding standards and follow the existing style and structure.


Thank you for your interest in the Kaun Banega Crorepati Game. Enjoy the thrill of the 'Kaun Banega Crorepati' game and test your knowledge for a chance to win virtual cash rewards!

About

This Python script replicates the "Kaun Banega Crorepati" game, presenting users with multiple-choice questions and monetary rewards. Players can choose to answer or quit at any point, accumulating winnings based on correct answers. The game concludes with a display of the player's total earnings.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages