Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem Script.R
open_goat_door(game,a.pick)
return a door that contain a goat behind it.
1 | open_goat_door(game, a.pick)
|
game |
Character, car or one of the goats |
a.pick |
Numeric, door numbers |
Before the selected door is opened however, someone who knows what's behind the doors (Monty Hall) opens one of the other two doors, but it can't be a door the contestant has already selected . So it must be a door that is not a car and not a current contestant selection.
a number between 1 and 3 that contain a goat behind it
1 2 3 | game <- create_game()
a.pick <- select_door()
open_goat_door ( game, a.pick )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.