puzzle

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeName

func NormalizeName(s string) string

Types

type Definition

type Definition struct {
	ID           GameID
	Name         string
	Description  string
	Aliases      []string
	Modes        []ModeDef
	DailyModeIDs []ModeID
}

func NewDefinition added in v1.9.0

func NewDefinition(spec DefinitionSpec) Definition

func (Definition) HasMode

func (d Definition) HasMode(id ModeID) bool

type DefinitionSpec added in v1.9.0

type DefinitionSpec struct {
	ID           GameID
	Name         string
	Description  string
	Aliases      []string
	Modes        []ModeDef
	DailyModeIDs []ModeID
}

type GameID

type GameID string

func CanonicalGameID

func CanonicalGameID(name string) GameID

type ModeDef

type ModeDef struct {
	ID          ModeID
	Title       string
	Description string
	Seeded      bool
}

func NewModeDef added in v1.9.0

func NewModeDef(spec ModeSpec) ModeDef

type ModeID

type ModeID string

func CanonicalModeID

func CanonicalModeID(title string) ModeID

func SelectModeIDsByIndex added in v1.9.0

func SelectModeIDsByIndex(modes []ModeDef, indexes ...int) []ModeID

type ModeSpec added in v1.9.0

type ModeSpec struct {
	ID          ModeID
	Title       string
	Description string
	Seeded      bool
}

Jump to

Keyboard shortcuts

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