determine_winner: Determine If Contestant Has Won.

Description Usage Arguments Details Value Examples

View source: R/newscriptmontyhall.R

Description

determine_winner() generates the result which is whether the contestant has won or lost.

Usage

1
determine_winner(final.pick, game)

Arguments

...

the door picked by the contestant.

Details

If the contestant final choice was a door with car then he is a winner and if his choice was a door with a goat behind it then he is a loser.

Value

the result wich is winner or loser.

Examples

1

ZEINAZEINEDDINE/montyhall documentation built on Sept. 20, 2020, 12:44 a.m.