Monty Hall

by jens
See Code Download Embed
Simulation of the "Monty Hall" or "Three Doors" problem.

You are in a quiz show and can choose one of three doors. Behind one is a prize, a car, behind two doors are goats. After you choose your door the show master reveals one door with a goat and asks you to reconsider your choice.

Will you stick to your original choice or switch to another door?

Press the green flag for a new game, the space key to reset the counts of wins and losses.

The stage has two scripts that automate each strategy, "stick" or "switch", so you can track which one performs better in the long run.

After an idea by Ralf Romeike.

Created February 19, 2019

Last updated February 23, 2019

Published February 23, 2019