setup_game: Setup Hoot Owl Hoot! Game

Description Usage Arguments Value Examples

Description

Setup Hoot Owl Hoot! Game

Usage

1
setup_game(n_players = 2, n_owls = 3, n_cards_per_player = 3)

Arguments

n_players

An integer (2-4) specifying the number of players

n_owls

An integer (1-6) specifying the number of owls

n_cards_per_player

An integer specifying the number of cards per player.

Value

A list the following items: deck contains the shuffled cards player is a n_cards_per_player x n_players matrix with the in hand cards board a data.frame containing the spaces on the board and whether those spaces are occupied sun an integer specifying where the sun is (0 is a loss) discard the cards in the discard pile (initially NULL) turn an integer specifying whose turn it is

Examples

1
board <- setup_game(n_players = 3, n_owls = 4)

BoardGameSimulator/HootOwlHoot documentation built on May 6, 2019, 7:58 a.m.