The Monty Hall Problem

goatI was a bit bored a few weekends ago, and happened to read a
BBC News article about the Monty Hall Problem.

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 No. 1, and the host, who knows what’s behind the doors, opens another door, say No. 3, which has a goat. He then says to you, “Do you want to pick door No. 2?” Is it to your advantage to switch your choice?

I’ve come across the problem before, but thought it might be fun to make a page which let you play the game and kept score. So here it is:

This started out as a little toy project to allow me to explore some areas of Symfony and Doctrine I’ve not used much. But, I’ve decided to get into the habit of polishing these little experiments and releasing them.

Give it a try!