Module twentyone::game [−][src]
Game-related functions and structures, such as the dealer or hand value checking
Structs
Dealer | Describes a blackjack dealer |
GameConfig | Configure different aspects of the game |
Player | Describes a blackjack player |
Enums
DealerRequest | Requests for the player from the dealer |
PlayerAction | Actions a player can perform |
PlayerActionError | Reason for a dealer being unable to perform an action |
Constants
DEFAULT_CONFIG | A default configuration for game settings. |
Functions
can_split | Returns whether a hand is able to split |
get_hand_value | Returns the value of a hand |