change_door | Switch or stay with initial door |
create_game | Creates vector of user inputs |
determine_winner | Determine whether the final door is a winner |
game | Monty Hall Simulation |
open_goat_door | Open a door that is not the player's door or car door |
play_game | Play game with desired number of cars and goats |
select_door | Player selects a door |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.