Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem Script.R
This function determine if the player wins or lose.
1 | determine_winner(final.pick, game)
|
final.pick |
Numeric, Player's final pick door between 1&3 |
game |
Character, Car or a Goat |
After the player decided his final selection, whether he wants to stay on his first selection or choose to change, this function determine if he win a car or lose it.
Return Character, "WIN" or "Lose"
1 2 3 | final.pick = 1
game <- create_game()
determine_winner <- function( final.pick, game )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.