open_goat_door: Select the goat door.

Description Usage Arguments Details Value Examples

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

Description

'open_goat_door()' selects one of the doors with a goat behind it.

Usage

1
open_goat_door(game, a.pick)

Arguments

This

function has the details of the created game and the original door selection as paramaters.

Details

Function to select one of the goat doors.

Value

This function returns a number from 1-3 that represents the door with the goat behind it.

Examples

1

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