play_game: Simulation Set-Up

Description Usage Details Value Examples

View source: R/monty-hall-problem.R

Description

Take the packages from the previous steps and combine them into one package.

Usage

1

Details

After completing the process of creating small packages to handle specific functions of the game, the time has come to combine them all to run together as one complete package.

Value

The game will return the vector of the strategy function as well as the vector of the outcome function in a table with the appropriate headers.

Examples

1
2
3
  Strategy     Outcome
  stay          WIN
  switch        LOSE

scribenaz/montyhall documentation built on Jan. 31, 2021, 12:48 a.m.