create_game: Create the orginization of goats and cars.

Description Usage Arguments Value Examples

View source: R/create_game.R

Description

Create the orginization of goats and cars.

Usage

1
create_game(goats = 2, cars = 1)

Arguments

goats

Numer of goats that will be hidden behind doors.

cars

Number of cars that will be hidden behind doors.

...

further arguments passed to or from other methods.

Value

create_game() will create a sample game of two goats and one car by default, but also will allow the user to define the number of goats and cars in the simulation.

Examples

1
2
3
4
5
## Randomly sorts 2 goats and 1 car
create_game()

## Randomly sorts 4 goats and 3 cars.
create_game(4, 3)

ndavis4904/montyhall documentation built on Dec. 22, 2021, 12:07 a.m.