Description Usage Arguments Value
Test Whether Action Is Valid
1 | validate_bet(player, action, turn, bets, raise)
|
player |
An object of the S4 class player. |
action |
A string that represents the players action when it is their turn. It is usually generated using the input_action() funciton. |
turn |
An integer representing the index of the player who's go it is. |
bets |
A vector containing the current value of each player's contribution to the pot. |
raise |
A numeric value representing the most recent raise made by any of the players. |
A list containing a logical value representing the validity of the action. The list will have a second element when the logical value is FALSE, which contains a string detailing the nature of the problem.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.