puzzles

package
v0.13.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 11, 2026 License: GPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BingoNineOrAbovePuzzle

func BingoNineOrAbovePuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func BingoPuzzle

func BingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func BlankBingoPuzzle

func BlankBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func CELOnlyPuzzle

func CELOnlyPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func CreatePuzzlesFromGame

func CreatePuzzlesFromGame(conf *config.Config, eqLossLimit int, g *game.Game, req *pb.PuzzleGenerationRequest) ([]*pb.PuzzleCreationResponse, error)

func EquityPuzzle

func EquityPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

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 NonBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func OnlyBingoPuzzle

func OnlyBingoPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

func PointsPuzzle added in v0.13.2

func PointsPuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

PointsPuzzle fires when the answer is the top-scoring play by at least score_margin.

func PowerTilePuzzle

func PowerTilePuzzle(ctx *tagCtx) (bool, pb.PuzzleTag)

XXX: Must be expanded to other languages

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL