Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
determine_winner()
determines if the contestants final door
selection contained a car (win) or a goat (lose).
1 | determine_winner(final.pick, game)
|
final.pick |
= the argument which has the returned door from the change_door() function. game = the argument containing the positions of the goats and car from the create_game() function |
After the contestant makes their final door selection in the "Let's Make a Deal" game show, Monty Hall reveals whether the contestants door contains a car or goat.
The function returns a length 3 or 4 character vector indicating whether the contestant won or loss the game.
1 | determine_winner( final.pick, game )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.