determine_winner: Determine whether the contestant is a winner.

Description Usage Arguments Details Value

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

Description

'determine_winner()' indicates whether the contestant won or loss.

Usage

1
determine_winner(final.pick, game)

Arguments

This

function uses the final pick and game functions.

Details

This function indicates whether the final selected door has a car behind it.

Value

This function returns 'WIN' or 'LOSE'


castower/montyhall documentation built on March 1, 2020, 12:16 a.m.