Documentation
¶
Index ¶
- Constants
- type Answer
- type Card
- type CardCategory
- type Game
- func (g *Game) AddStartingHand(hand []*Card)
- func (g *Game) DoTurn(question Question)
- func (g Game) EnsureValidQuestion(question Question) bool
- func (g Game) GetAllCards() []*Card
- func (g Game) String() string
- func (g *Game) Update()
- func (g *Game) UpdateCompleteCategories()
- func (g *Game) UpdateCompletePlayers()
- func (g *Game) UpdateNonPossessors()
- type Link
- type Player
- type Question
- type TriLink
Constants ¶
View Source
const MeIdent = "ME"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct {
// contains filtered or unexported fields
}
func (*Card) AddNonPossessor ¶
type CardCategory ¶
type CardCategory struct {
Cards []*Card
}
func NewCardCategory ¶
func NewCardCategory(cards ...*Card) CardCategory
func (*CardCategory) FoundCard ¶
func (c *CardCategory) FoundCard(foundCard *Card, possessor *Player) (success bool)
func (CardCategory) GetKnownSolution ¶
func (c CardCategory) GetKnownSolution() *Card
func (CardCategory) HasKnownSolution ¶
func (c CardCategory) HasKnownSolution() bool
func (CardCategory) UpdateMurderKnowledge ¶
func (c CardCategory) UpdateMurderKnowledge()
type Game ¶
type Game struct {
Me *Player
// contains filtered or unexported fields
}
func NewDefaultGame ¶
func (*Game) AddStartingHand ¶
func (Game) EnsureValidQuestion ¶
func (Game) GetAllCards ¶
func (*Game) UpdateCompleteCategories ¶
func (g *Game) UpdateCompleteCategories()
func (*Game) UpdateCompletePlayers ¶
func (g *Game) UpdateCompletePlayers()
func (*Game) UpdateNonPossessors ¶
func (g *Game) UpdateNonPossessors()
type Question ¶
type Question struct {
// contains filtered or unexported fields
}
func NewQuestion ¶
Click to show internal directories.
Click to hide internal directories.