An open API service indexing awesome lists of open source software.

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.

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.

![Month Hall Problem](_readme/monty-hall-doors.png)

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)