Description Usage Arguments Value Examples
Setup Hoot Owl Hoot! Game
1 | setup_game(n_players = 2, n_owls = 3, n_cards_per_player = 3)
|
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. |
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
1 | board <- setup_game(n_players = 3, n_owls = 4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.