Version 1: Simulate the game show. Put plenty of commentary (output)
in your program, giving a running account of what is happening. (Be sure to
run your program enough times to see that it is behaving correctly.)
Please make sure that Monty initially does not open the winning door
or the initially unchosen door.
Behind the scenes...
Curtain 1: grand prize Curtain 2: third prize Curtain 3: second prize
The first contestant picks curtain 2.
The second contestant picks curtain 3.
Monty opens curtain 2.
Monty gives the second contestant the chance to switch from curtain 3 to
curtain 1.
Jane shouts the contestant should switch.
Jane is right.
Betty shouts the contestant should not switch.
Betty is wrong.
Before the show, Frank chose curtain 2.
Frank shouts the contestant should switch.
Frank is right.
Fred shouts the contestant should switch.
Fred is right.
-------------------------------------------------------
Behind the scenes...
Curtain 1: grand prize Curtain 2: second prize Curtain 3: third prize
The first contestant picks curtain 2.
The second contestant picks curtain 3.
Monty opens curtain 3.
Monty gives the first contestant the chance to switch from curtain 2 to
curtain 1.
Jane shouts the contestant should switch.
Jane is right.
Betty shouts the contestant should not switch.
Betty is wrong.
Before the show, Frank chose curtain 1.
Frank shouts the contestant should switch.
Frank is right.
Fred shouts the contestant should not switch.
Fred is wrong.
--------------------------------------------------------
Behind the scenes...
Curtain 1: third prize Curtain 2: grand prize Curtain 3: second prize
The first contestant picks curtain 1.
The second contestant picks curtain 2.
Monty opens curtain 1.
Monty gives the second contestant the chance to switch from curtain 2 to
curtain 3.
Jane shouts the contestant should switch.
Jane is wrong.
Betty shouts the contestant should not switch.
Betty is right.
Before the show, Frank chose curtain 1.
Frank shouts the contestant should switch.
Frank is wrong.
Fred shouts the contestant should switch.
Fred is wrong.
--------------------------------------------------------
Behind the scenes...
Curtain 1: second prize Curtain 2: third prize Curtain 3: grand prize
The first contestant picks curtain 1.
The second contestant picks curtain 3.
Monty opens curtain 1.
Monty gives the second contestant the chance to switch from curtain 3 to
curtain 2.
Jane shouts the contestant should switch.
Jane is wrong.
Betty shouts the contestant should not switch.
Betty is right.
Before the show, Frank chose curtain 3.
Frank shouts the contestant should not switch.
Frank is right.
Fred shouts the contestant should switch.
Fred is wrong.
---------------------------------------------------------------