Documentation
¶
Index ¶
- Variables
- func BingoNineOrAbovePuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func BingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func BlankBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func CELOnlyPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func CreatePuzzlesFromGame(conf *config.Config, eqLossLimit int, g *game.Game, ...) ([]*pb.PuzzleCreationResponse, error)
- func EquityPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func InitializePuzzleGenerationRequest(req *pb.PuzzleGenerationRequest) error
- func IsEquityPuzzleStillValid(conf *config.Config, g *game.Game, turnNumber int, answer *pb.GameEvent, ...) (bool, error)
- func NonBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func OnlyBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func PointsPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
- func PowerTilePuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)
Constants ¶
This section is empty.
Variables ¶
View Source
var PuzzleFunctions = []tagFn{ EquityPuzzle, BingoPuzzle, OnlyBingoPuzzle, BlankBingoPuzzle, NonBingoPuzzle, PowerTilePuzzle, BingoNineOrAbovePuzzle, CELOnlyPuzzle, PointsPuzzle, }
Functions ¶
func BingoNineOrAbovePuzzle ¶
func BingoPuzzle ¶
func BlankBingoPuzzle ¶
func CELOnlyPuzzle ¶
func CreatePuzzlesFromGame ¶
func CreatePuzzlesFromGame(conf *config.Config, eqLossLimit int, g *game.Game, req *pb.PuzzleGenerationRequest) ([]*pb.PuzzleCreationResponse, error)
func EquityPuzzle ¶
func InitializePuzzleGenerationRequest ¶
func InitializePuzzleGenerationRequest(req *pb.PuzzleGenerationRequest) error
func IsEquityPuzzleStillValid ¶ added in v0.9.0
func IsEquityPuzzleStillValid(conf *config.Config, g *game.Game, turnNumber int, answer *pb.GameEvent, updatedLexiconName string) (bool, error)
IsEquityPuzzleStillValid returns a boolean indicating whether an equity puzzle is stll valid given a new lexicon. The old answer must still be the clear winner.
func NonBingoPuzzle ¶
func OnlyBingoPuzzle ¶
func PointsPuzzle ¶ added in v0.13.2
PointsPuzzle fires when the answer is the top-scoring play by at least score_margin.
func PowerTilePuzzle ¶
XXX: Must be expanded to other languages
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.