Documentation
¶
Index ¶
Constants ¶
View Source
const ( ActionFlipCard = "FlipCard" ActionEndTurn = "EndTurn" )
Action types
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct{}
func (*Builder) CreateWithBGN ¶
func (b *Builder) CreateWithBGN(options *bg.BoardGameOptions) (bg.BoardGameWithBGN, error)
type Codenames ¶
type Codenames struct {
// contains filtered or unexported fields
}
func NewCodenames ¶
func NewCodenames(options *bg.BoardGameOptions) (*Codenames, error)
func (*Codenames) GetSnapshot ¶
func (c *Codenames) GetSnapshot(team ...string) (*bg.BoardGameSnapshot, error)
type CodenamesMoreOptions ¶
type CodenamesMoreOptions struct {
// Words must be 25 words in length - optional, one of Words or Seed required
Words []string
// Seed used to generate deterministic randomness - optional, one of Words or Seed required
Seed int64
}
CodenamesMoreOptions are the additional options for creating a game of Codenames
type CodenamesSnapshotData ¶
type CodenamesSnapshotData struct {
Board [][]*card
}
CodenamesSnapshotData is the game data unique to Codenames
type FlipCardActionDetails ¶
type FlipCardActionDetails struct {
Row, Column int
}
FlipCardActionDetails is the action details for flipping a card at the desired row and column
Click to show internal directories.
Click to hide internal directories.