play_game: Play the Monty Hall Problem game.

Description Usage Arguments Details Value Examples

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

Description

play_game() packages all above functions together and plays the game from the beginning to the end.

Usage

1

Arguments

...

no arguments are used by the function.

Details

The function will execute all functions by order, generate a random game setting, play around, and returns the result.

Value

The function returns a length 1 character vector indicating the result of the game.

Examples

1

lghb2005/montyhall documentation built on Jan. 30, 2021, 12:46 a.m.