https://github.com/nodesocket/monty-hall-problem-simulation
A simple web-based simulation of the Monty Hall problem
https://github.com/nodesocket/monty-hall-problem-simulation
css html javascript montyhall montyhallproblem
Last synced: about 1 month ago
JSON representation
A simple web-based simulation of the Monty Hall problem
- Host: GitHub
- URL: https://github.com/nodesocket/monty-hall-problem-simulation
- Owner: nodesocket
- License: gpl-3.0
- Created: 2026-05-29T18:32:25.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-05-29T18:53:48.000Z (about 1 month ago)
- Last Synced: 2026-05-29T20:17:14.708Z (about 1 month ago)
- Topics: css, html, javascript, montyhall, montyhallproblem
- Language: JavaScript
- Homepage: https://nodesocket.github.io/monty-hall-problem-simulation/
- Size: 41 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Monty Hall Problem Simulation
A simple web-based simulation of the [Monty Hall problem](https://en.wikipedia.org/wiki/Monty_Hall_problem).
*Play at: https://nodesocket.github.io/monty-hall-problem-simulation/*
_Coded with AI assistance from Cursor._
## How to play
1. Open `index.html` in your browser _(or run a local http server)_.
2. Pick one of three cups.
3. The host removes an empty cup.
4. Choose to **stay** with your original cup or **switch** to the other remaining cup.
5. All cups are revealed — see if you found the ball.
## Run locally
```bash
# from this directory
python3 -m http.server 8888
```
Then visit [http://localhost:8888](http://localhost:8888)