play_card: Play a card

Description Usage Arguments Value See Also Examples

Description

Play a card

Usage

1
play_card(card, game, owl = NULL)

Arguments

card

A character string indicating a card

game

A game state

owl

An integer specifying which owl to move. Owl #1 is closest to the end.

Value

An updated game state

See Also

setup_game

Examples

1
2
game <- setup_game()
game <- play_card(game$player$player1[1])

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