play_game: Play game

Description Usage Arguments Details Value Examples

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

Description

The play_game() executes each step of a single game in order and see which strategy wins/loses.

Usage

1

Arguments

...

no arguments are used by the function.

Details

The objects assigned to each of the functions to help determine the final game results if contestant switches his pick or stays with his same pick.All the functions are packaged into this single play_game () function which executes each step of a single game in order.

Value

The play game function returns game results in both scenarios (stay & switch)

Examples

1

malmufre/montyhall documentation built on Sept. 20, 2020, 12:46 a.m.