open_goat_door: HOST OPENS GOAT DOOR.

Description Usage Arguments Details Value Examples

View source: R/montyhall.R

Description

open_goat_door() HOST OPENS GOAT DOOR.

Usage

1
open_goat_door(game, a.pick)

Arguments

if

arguments are used by the function.

Details

The host will always open a door with a goat behind it, but it can’t be a door the contestant has already selected. So it must be a door that is not a car and not a current contestant selection. Note that if the contestant selects the car on the first guess the host can open either door, but if the contestant selects a goat the host only has one option.

Value

The function returns the opened door.

Examples

1

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