puzzles

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func BingoNineOrAbovePuzzle

func BingoNineOrAbovePuzzle(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func BingoPuzzle

func BingoPuzzle(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func BlankBingoPuzzle

func BlankBingoPuzzle(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func CELOnlyPuzzle

func CELOnlyPuzzle(g *game.Game, moves []*move.Move) (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(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func GetFunctionName added in v0.5.0

func GetFunctionName(i interface{}) string

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(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func OnlyBingoPuzzle

func OnlyBingoPuzzle(g *game.Game, moves []*move.Move) (bool, pb.PuzzleTag)

func PowerTilePuzzle

func PowerTilePuzzle(g *game.Game, moves []*move.Move) (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