Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem.R
'play_game()' returns the game outcomes of a new Monty Hall game each time it is run.
1 |
... |
no arguments are used by the function. |
The function uses results generated by 'create_game()', 'select_door()', 'open)goat_door()', 'change_door()', and 'determine_winner()'. These results are printed in a table describing the outcome of two game strategies.
A table with the game outcome (WIN or LOSE) for each strategy (stay or switch).
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.