Versions in this module Expand all Collapse all v1 v1.0.0 Feb 1, 2026 Changes in this version + const Rank10 + const Rank2 + const Rank3 + const Rank4 + const Rank5 + const Rank6 + const Rank7 + const Rank8 + const Rank9 + const RankAce + const RankJack + const RankKing + const RankQueen + const ResultDealerWin + const ResultPending + const ResultPlayerWin + const ResultPush + const StateDealerTurn + const StateGameOver + const StateNewGame + const StatePlayerTurn + const SuitClubs + const SuitDiamonds + const SuitHearts + const SuitSpades + type Card struct + Rank string + Suit string + func NewCard(suit, rank string) Card + func (c Card) Value() int + type Deck struct + func NewDeck() *Deck + func (d *Deck) Draw() Card + func (d *Deck) Shuffle() + type Flow struct + func NewFlow() *Flow + func (f *Flow) Deal() + func (f *Flow) EndGame(result uint8) + func (f *Flow) IsGameOver() bool + func (f *Flow) Reset() + func (f *Flow) Result() uint8 + func (f *Flow) Stand() + func (f *Flow) State() uint8 + type Game struct + DealerHand *Hand + Flow *Flow + PlayerHand *Hand + func NewGame() *Game + func (g *Game) Deal() + func (g *Game) DealerPlay() + func (g *Game) DetermineWinner() uint8 + func (g *Game) Hit() + func (g *Game) Stand() + type Hand struct + Cards []Card + func NewHand() *Hand + func (h *Hand) AddCard(c Card) + func (h *Hand) Clear() + func (h *Hand) IsBlackjack() bool + func (h *Hand) IsBusted() bool + func (h *Hand) Value() int