Description Usage Arguments Details Value Examples
View source: R/newscriptmontyhall.R
play_game() wraps the game steps into a single function which includes within it all the required steps.
1 |
... |
numeric and logical vectors of the game steps. |
This is a wrap function that includes within it all other functions and by the end we can know depending on whether the contestant has chose to switch or stay whther he is a winner or loser.
the result of the game which is whether the contestant has won or lose.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.