Documentation
¶
Index ¶
Constants ¶
View Source
const ( SuitClubs = "clubs" SuitDiamonds = "diamonds" SuitHearts = "hearts" SuitSpades = "spades" )
View Source
const ( RankAce = "a" RankKing = "k" RankQueen = "q" RankJack = "j" Rank10 = "10" Rank9 = "9" Rank8 = "8" Rank7 = "7" Rank6 = "6" Rank5 = "5" Rank4 = "4" Rank3 = "3" Rank2 = "2" )
View Source
const ( StateNewGame uint8 = iota StatePlayerTurn StateDealerTurn StateGameOver )
View Source
const ( ResultPending uint8 = iota ResultPlayerWin ResultDealerWin ResultPush )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Flow ¶
type Flow struct {
// contains filtered or unexported fields
}
func (*Flow) IsGameOver ¶
type Game ¶
type Game struct {
Flow *Flow
PlayerHand *Hand
DealerHand *Hand
// contains filtered or unexported fields
}
func (*Game) DealerPlay ¶
func (g *Game) DealerPlay()
func (*Game) DetermineWinner ¶
Click to show internal directories.
Click to hide internal directories.