play_game: Play game with desired number of cars and goats

Description Usage Arguments Details Value Examples

View source: R/Monty Hall Script.R

Description

play_game() returns the results of the game given the number of cars and goats inputted by the player.

Usage

1

Arguments

...

This function does not take any arguments.

Details

This function is a wrapper function that runs through the game. If used independently, this function would only run through the game once as opposed to the full simulation.

Value

This function returns a character vector that states the results of one game.

Examples

1

dlyork/montyhall documentation built on Jan. 31, 2021, 7:22 p.m.