19

Monty Hall problem

 4 years ago
source link: https://github.com/victorqribeiro/montyhall
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Monty Hall Problem

Implementation of the famouse Monty Hall problem .

FJJzA37.png!web

LIVE VERSION HERE

About

I wrote this a long long time ago. I remeber the Monty Hall problem being the first time I got interested in coding a game experiment. I've update my original code just to translate things to english and to add support to mobile browsers, the rest is just like I first designed the game.

Click on a door, if you want to stick with it, click on it again. If not, click another door to make the switch.

After you play you'll be shown basic statistics so you can see for yourself what is the best way to play the game: pick a door and stick to it, or to switch after a initial pick.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK