https://github.com/codeadamca/javascript-monty-hall
Using JavaScript to prove the Monty Hall problem.
https://github.com/codeadamca/javascript-monty-hall
javascript learning-code monty-hall
Last synced: 11 months ago
JSON representation
Using JavaScript to prove the Monty Hall problem.
- Host: GitHub
- URL: https://github.com/codeadamca/javascript-monty-hall
- Owner: codeadamca
- Created: 2023-02-13T18:43:52.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-26T21:20:09.000Z (about 1 year ago)
- Last Synced: 2025-01-26T22:23:34.675Z (about 1 year ago)
- Topics: javascript, learning-code, monty-hall
- Language: HTML
- Homepage:
- Size: 51.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Monty Hall Problem
The Monty Hall problem is based on an American television game show and named after its host, Monty Hall. The problem goes like this:
Suppose you're on a game show, and you're given the choice of three doors. Behind one door is a car; behind the others, goats.

You pick a door, say number one. Then the host, who knows what's behind the doors, opens another door, say nuymber three, which reveals a goat.
The host then says to you, "Do you want to keep your original foor, or switch to door number two?"
Is it to your advantage to switch your choice?
This repo will use JavaScript to prove the Monty Hall problem.
***
## Repo Resources
* [Visual Studio Code](https://code.visualstudio.com/)
* [The Monty Hall Problem](https://www.youtube.com/watch?v=4Lb-6rxZxx0)