Versions in this module Expand all Collapse all v0 v0.0.2 Feb 4, 2022 v0.0.1 Feb 4, 2022 Changes in this version + func ParseChallengeRule(rule string) (pb.ChallengeRule, error) + func ShowChallengeRule(rule pb.ChallengeRule) string + type GameOptions struct + BoardLayoutName string + ChallengeRule pb.ChallengeRule + FirstIsAssigned bool + GoesFirst int + Lexicon *Lexicon + func (opts *GameOptions) SetBoardLayoutName(name string) error + func (opts *GameOptions) SetChallenge(rule string) error + func (opts *GameOptions) SetDefaults(config *config.Config) + func (opts *GameOptions) SetLexicon(fields []string) error + type GameRunner struct + func NewGameRunnerFromRules(opts *GameOptions, players []*pb.PlayerInfo, rules *game.GameRules) (*GameRunner, error) + func (g *GameRunner) IsPlaying() bool + func (g *GameRunner) MoveFromEvent(evt *pb.GameEvent) (*move.Move, error) + func (g *GameRunner) NewChallengeMove(playerid int) (*move.Move, error) + func (g *GameRunner) NewExchangeMove(playerid int, letters string) (*move.Move, error) + func (g *GameRunner) NewPassMove(playerid int) (*move.Move, error) + func (g *GameRunner) NewPlacementMove(playerid int, coords string, word string) (*move.Move, error) + func (g *GameRunner) ParseMove(playerid int, lowercase bool, fields []string) (*move.Move, error) + func (g *GameRunner) SetCurrentRack(letters string) error + func (g *GameRunner) SetPlayerRack(playerid int, letters string) error + type Lexicon struct + Distribution string + Name string + func (lex *Lexicon) ToDisplayString() string