Dispatches to the player's strategy and returns a single legal card.
Usage
sk_choose(
player,
hand,
led,
game_type,
trick = character(0),
call = rlang::caller_env()
)Arguments
- player
An
sk_playerobject.- hand
The player's current hand (
sk_cardor character vector).- led
The led card, or
NULLif this player leads.- game_type
A single game-type string, one of
sk_game_types().- trick
Cards already played to the current trick, in play order and including the led card. Defaults to
character(0); when it is empty butledis supplied,ledis taken as the whole trick so far.- call
The calling environment, used for error reporting.
See also
sk_legal_moves() for the set a choice is drawn from.
Other player functions:
sk_mcts_move(),
sk_player()