Description Usage Arguments Details Value Examples
View source: R/monty-hall-problem (4).R
play_game()
generates a scenario incorporating all of what we have built
putting it all together to run a simulation of whether staying with your
initial selection, or switching will yield a better outcome of winning.
1 |
... |
no arguments are used by the function. |
Going through the entire game, step by step, will allow for a better understanding of the game in an attempt to determine if staying with, or switching the initial selection is best to increase chances of winning at the game.
The function returns different outcomes when it is run. It will determine if staying with initial selections wins or loses, same goes for switching.
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.