play_game: Play a full Monty Hall Problem game.

Description Usage Arguments Details Value Examples

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

Description

'play_game()' returns the game outcomes of a new Monty Hall game each time it is run.

Usage

1

Arguments

...

no arguments are used by the function.

Details

The function uses results generated by 'create_game()', 'select_door()', 'open)goat_door()', 'change_door()', and 'determine_winner()'. These results are printed in a table describing the outcome of two game strategies.

Value

A table with the game outcome (WIN or LOSE) for each strategy (stay or switch).

Examples

1

ekmcintyre/montyhall documentation built on Feb. 1, 2021, 12:24 a.m.