Description Usage Arguments Value Examples
Gives the player the opion to switch to a different door or to stay with the original door.
1 | change_door_orig(stay = T, opened.door, a.pick)
|
stay |
= T True means that the player would stay with the original door, False would mean to switch to a different door |
opened.door |
The door that has been opened with a goat behind it. |
a.pick |
The original door selected by the player |
door.choices |
The total number of doors in the game. |
... |
further arguments passed to or from other methods. |
This function allows the player to choose if they would like to stay on their original door or switch their choice to a different door given the results of the opened door.
1 2 3 4 5 | ## Player switches the door to the only remaining door.
change_door_orig(F, 2, 1)
## Randomly chooses a remaining door from those that remain.
change_door(F, opened.ddor = 3, a.pick = 2, door.choices = 8)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.