determine_winner: DETERMINE IF CONTESTANT HAS WON.

Description Usage Arguments Details Value Examples

View source: R/montyhall.R

Description

determine_winner() DETERMINE IF CONTESTANT HAS WON.

Usage

1
determine_winner(final.pick, game)

Arguments

if

arguments are used by the function.

Details

After the contestant choose his/her final pick whether to Stay or Switch doors, the final picked door is open and the results of determining if the contestant Wins or Loses.

Value

The function returns if the contestant WIN or LOSE.

Examples

1

Sanaz-27/montyhall documentation built on Dec. 18, 2021, 12:56 p.m.