Skip to content

This repository features a Python-based simulation of the Monty Hall problem, a classic probability puzzle game. Players choose from three doors to find a prize hidden behind one, with the host revealing empty options along the way. The code is open for cloning, running, and contributing improvements.

Notifications You must be signed in to change notification settings

pranavgupta2603/montygame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monty Hall Game

This repository contains a Python implementation of the Monty Hall game. The Monty Hall problem is a probability puzzle named after the host of the American television game show "Let's Make a Deal", Monty Hall. The game involves three doors, behind one of which is a valuable prize, and behind the other two are goats. The player chooses a door, and then the host, who knows what is behind each door, opens one of the remaining doors to reveal a goat. The player is then given the option to switch their choice to the other unopened door or stick with their original choice. The goal is to maximize the chances of winning the prize.

This is how I spend my free time :)

Usage

To run the Monty Hall game, follow these steps:

  1. Clone the repository:

    git clone https://github.com/pranavgupta2603/montygame.git
  2. Navigate to the project directory:

    cd montygame
  3. Run the game:

    python montyhall.py
  4. You can change the number of doors and the samples.

Contributing

If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.

About

This repository features a Python-based simulation of the Monty Hall problem, a classic probability puzzle game. Players choose from three doors to find a prize hidden behind one, with the host revealing empty options along the way. The code is open for cloning, running, and contributing improvements.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages