Documentation ¶
Index ¶
- type BlackJack
- func (b *BlackJack) Bet(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Double(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Finish(s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Hit(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Join(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Leave(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) PeekAtDealer() string
- func (b *BlackJack) Scores(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Start(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Stay(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- func (b *BlackJack) Total(args []string, s *discordgo.Session, m *discordgo.MessageCreate)
- type Card
- type Datastore
- type Deck
- type FrenchCard
- type FrenchDeck
- type Player
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlackJack ¶
type BlackJack struct {
// contains filtered or unexported fields
}
func (*BlackJack) Finish ¶
func (b *BlackJack) Finish(s *discordgo.Session, m *discordgo.MessageCreate)
func (*BlackJack) PeekAtDealer ¶
type Datastore ¶
func BuildDatastore ¶
func BuildDatastore() Datastore
type Deck ¶
type FrenchCard ¶
type FrenchCard struct {
// contains filtered or unexported fields
}
func (*FrenchCard) Suit ¶
func (c *FrenchCard) Suit() string
func (*FrenchCard) Value ¶
func (c *FrenchCard) Value() string
type FrenchDeck ¶
type FrenchDeck struct {
// contains filtered or unexported fields
}
func NewHand ¶
func NewHand() *FrenchDeck
func (*FrenchDeck) Draw ¶
func (self *FrenchDeck) Draw() Card
func (*FrenchDeck) Insert ¶
func (self *FrenchDeck) Insert(card Card)
func (*FrenchDeck) Next ¶
func (self *FrenchDeck) Next() Card
func (*FrenchDeck) Peek ¶
func (self *FrenchDeck) Peek() Card
func (*FrenchDeck) Shuffle ¶
func (self *FrenchDeck) Shuffle()
func (*FrenchDeck) Size ¶
func (self *FrenchDeck) Size() int
func (*FrenchDeck) String ¶
func (self *FrenchDeck) String() string
func (*FrenchDeck) Total ¶
func (self *FrenchDeck) Total() int
Click to show internal directories.
Click to hide internal directories.