Documentation ¶
Index ¶
- Constants
- func DrainInto(src, dest *[]playing.Card)
- type Game
- func (g Game) CardsDealtToCrib() int
- func (g Game) CardsToDealPerPlayer() int
- func (g *Game) CutAt(depth int)
- func (g *Game) DealCardTo(dest *[]playing.Card)
- func (g *Game) DealRound()
- func (g Game) Left(player int) int
- func (g Game) NumPlayers() int
- func (g *Game) Reset()
- func (g Game) Right(player int) int
- func (g *Game) Sacrifice(player, card int)
- func (g *Game) Shuffle()
- func (g Game) String() string
- type Phase
- type Player
Constants ¶
View Source
const MinHand = 4
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Game ¶
type Game struct { Phase Deck []playing.Card CutCard *playing.Card Dealer int Crib []playing.Card Players []Player }
func (Game) CardsDealtToCrib ¶
func (Game) CardsToDealPerPlayer ¶
func (*Game) DealCardTo ¶
func (Game) NumPlayers ¶
Click to show internal directories.
Click to hide internal directories.