Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Blackjack ¶
type Blackjack struct { Deck *Deck `json:"deck"` // deck of cards Dealer *Dealer `json:"dealer"` // dealer struct Player *Player `json:"player"` // player struct State string `json:"state"` // game state (over or in progress) PlayerSum int `json:"playerSum"` // player hand sum DealerSum int `json:"dealerSum"` // dealer hand sum LastAction string `json:"lastAction"` // last player action }
Blackjack : will have a player, a dealer and a deck
type Dealer ¶
type Dealer struct {
Drawn []Card `json:"drawn"`
}
Dealer : struct to maintain dealer drawn cards
type Deck ¶
type Deck struct { Cards []Card Dealt []Card Suites []string `json:"suites"` Names []string `json:"names"` Values []int `json:"values"` }
Deck : collection of cards
Click to show internal directories.
Click to hide internal directories.