Documentation ¶
Index ¶
Constants ¶
View Source
const ( BetModifier float64 = 1.5 Hearts Suit = "Hearts" Spades Suit = "Spades" Diamonds Suit = "Diamonds" Clubs Suit = "Clubs" PlayerBust Result = "Player Bust" Under Result = "Under" Blackjack Result = "Player Blackjack" DealerWin Status = "Dealer Win" PlayerWin Status = "Player win" Draw Status = "Draw" InProgress Status = "In-Progress" Ace Rank = "Ace" Two Rank = "Two" Three Rank = "Three" Four Rank = "Four" Five Rank = "Five" Six Rank = "Six" Seven Rank = "Seven" Eight Rank = "Eight" Nine Rank = "Nine" Ten Rank = "Ten" Jack Rank = "Jack" Queen Rank = "Queen" King Rank = "King" )
Variables ¶
This section is empty.
Functions ¶
func HandleBlackJack ¶
func HandleBlackJack(s *discordgo.Session, m *discordgo.MessageCreate)
Types ¶
type Action ¶
type Action struct { Action PlayOption Result Result Status Status }
type GameState ¶
type GameState struct { PlayerId string Deck []Card DealerHand []Card PlayerHand []Card Pot int Status Status }
func LoadOrCreateGameState ¶
func SetupNewGame ¶
type PlayOption ¶
type PlayOption string
const ( Bet PlayOption = "bet" Hit PlayOption = "hit" Stand PlayOption = "stand" )
Blackjack possible arguments
Click to show internal directories.
Click to hide internal directories.